motmetrics
Metrics for multiple object tracker benchmarking.
What it is and what it does
py-motmetrics is a Python library for evaluating multiple object tracker performance against ground truth annotations. It implements standard MOT metrics (MOTA, MOTP) and global ID measures (IDF1, IDP, IDR) used in the MOTChallenge benchmarks. The library handles the core challenge of multi-object tracking evaluation: finding optimal correspondences between predicted and ground truth objects across video frames, accounting for false positives, misses, and identity switches.
The package uses pandas DataFrames to track per-frame events (matches, false alarms, track switches) and supports pluggable assignment solvers (scipy, ortools, munkres). Results are compatible with MOTChallenge output formats, making it useful for comparing tracker implementations or validating new detection/tracking pipelines against published benchmarks.
Use it for:
- Benchmark a custom multi-object tracker against MOTChallenge datasets to compare MOTA/MOTP scores
- Evaluate pedestrian or vehicle detection and tracking pipelines in autonomous driving or surveillance systems
- Compare multiple tracker implementations on the same ground truth to identify which performs best
- Generate detailed per-frame event logs (false positives, identity switches) to debug tracker failures
- Integrate tracker evaluation into a continuous testing pipeline for computer vision models
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Computes multiple object tracker (MOT) evaluation metrics including MOTA, MOTP, and ID measures by matching ground truth objects to predictions across video frames.
Yes. The package fills a specific, well-defined role in multi-object tracking evaluation with low install friction, active maintenance, no security vulnerabilities, and permissive licensing. It is the standard choice for MOTChallenge-compatible benchmarking. Install it if you need to evaluate or compare object trackers; skip it if your use case does not involve multi-object tracking metrics.
Install
motmetrics on PyPI
pip
pip install motmetricsuv
uv add motmetricspoetry
poetry add motmetricsInstalling motmetrics
Before you install
Low friction: pure Python wheel with five standard scientific dependencies (numpy, pandas, scipy, xmltodict, enum34). Repository is actively maintained with recent commits and no known vulnerabilities.
License in practice
MIT license permits unrestricted use, modification, and distribution with minimal restrictions—suitable for academic, commercial, and proprietary projects.
Quickstart
pip install motmetrics
import motmetrics as mm
import numpy as np
# Create metrics handler
mh = mm.metrics.create()
# Compute metrics given ground truth and predictions
metrics = mh.compute(
gt, # ground truth objects per frame
dt, # detected/predicted objects per frame
metrics=['mota', 'motp', 'idf1']
)
Verify before relying
- Whether the package works with modern Python versions beyond 3.5/3.6/3.9 (requires_python field is empty in metadata)
- Exact solver backend availability and auto-tuning behavior for scipy, ortools, and munkres
- Whether xmltodict is used for MOTChallenge format parsing or is an unused legacy dependency
Package facts
| License | MIT (permissive) |
| Python support | not specified |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 5 — numpy, pandas, scipy, xmltodict, enum34 |
| Maintenance | actively maintained — 1,327 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 127,585/month — #11,737 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: motmetrics-1.4.0-py3-none-any.whl
Keywords: tracker, MOT, evaluation, metrics, compare
Tags
More Artificial Intelligence packages
LiteLLM provides a unified Python interface to…
permissive · top 100 on PyPI
huggingface-hubClient library and CLI tool for downloading,…
permissive · top 100 on PyPI
langchainLangChain provides a framework for building…
permissive · top 1,000 on PyPI
hf-xethf-xet provides chunk-based deduplication and…
permissive · top 1,000 on PyPI
tokenizersTokenizers converts raw text into token…
permissive · top 1,000 on PyPI
transformersTransformers provides a unified framework for…
permissive · top 1,000 on PyPI
boxmotBoxMOT provides pluggable multi-object tracking…
agpl · top 15,000 on PyPI
norfairNorfair adds real-time multi-object tracking to…
permissive · top 15,000 on PyPI
image-similarity-measuresComputes eight standard image similarity…
permissive · top 15,000 on PyPI
torchmetricsTorchmetrics provides a collection of PyTorch…
permissive · top 5,000 on PyPI
asvasv benchmarks Python packages over their…
permissive · top 15,000 on PyPI
opentelemetry-instrumentation-system-metricsCollects system performance metrics (CPU,…
permissive · top 5,000 on PyPI
rouge-metricComputes ROUGE metrics (ROUGE-N, ROUGE-L,…
permissive · top 15,000 on PyPI
aiotractiveAsynchronous Python client for the Tractive pet…
permissive · top 15,000 on PyPI
dtaidistanceComputes distance measures between time series…
permissive · top 15,000 on PyPI
piqPIQ provides a collection of image quality…
permissive · top 15,000 on PyPI