trackers
Plug-and-play object tracking in Python (multi-object) for any detection model.
[](https://badge.fury.io/py/trackers) [](https://pypistats.org/packages/trackers) [](https://github.com/roboflow/trackers/blob/release/stable/LICENSE) [](https://badge.fury.io/py/trackers) [](https://huggingface.co/spaces/roboflow/trackers) [](https://discord.gg/GbfgXGJ8Bk)
`trackers` is an object tracking library for Python. It gives you clean-room, benchmarked implementations of SORT, ByteTrack, OC-SORT, BoT-SORT, C-BIoU, and McByte — so occlusions, fast motion, and moving cameras stop being your problem to solve from scratch. It speaks `supervision.Detections` natively, slotting into any detector you already use — YOLO, DETR, RT-DETR, or anything else — without glue code. One consistent interface, whether you're a researcher comparing algorithms, an engineer shipping a production pipeline, or a hobbyist building something cool. Requires Python ≥ 3.10.
## Why trackers?
- **Clean-room implementations.** Every algorithm is re-implemented from the original paper — not vendored or wrapped. You can read it, understand it, and modify it.
- **Apache 2.0, no copyleft.** Ship it inside closed-source products — unlike AGPL-3.0 alternatives such as BoxMOT.
- **Detector-agnostic.** Works with YOLO, DETR, RT-DETR, or any model that produces bounding boxes. No inference library required or assumed.
- **`supervision.Detections` native.** Plugs directly into the supervision ecosystem. Pass detections in, get tracked detections back — zero glue code.
- **Benchmarked across four datasets.** MOT17, SportsMOT, SoccerNet, and DanceTrack — at default parameters and after hyperparameter tuning (McByte: defaults only, by design), so you know what to expect before you deploy.
- **Tunable with one extra.** Optuna-based hyperparameter search via `trackers tune` (`pip install "trackers[tune]"`) so you can optimize for your specific scene and detector.
- **Camera motion compensation.** BoT-SORT and McByte handle moving cameras natively, keeping track IDs stable even when the whole frame shifts.
## Install
```bash
pip install trackers
```