Tracking and Trackers
Use this sub-skill when the task is about boxmot track, direct tracker instantiation, tracker registry lookup, output schemas, or explaining how AABB and OBB detections flow through the tracker API.
Covers
boxmot track and BoxMOT.track(...)
boxmot.trackers.registry.create_tracker(...)
- direct tracker imports such as
boxmot.trackers.OccluBoost
- tracker selection by name or class
- AABB and OBB detection layouts
- track result accessors such as
xyxy, xywha, id, conf, cls, and det_ind
- per-class tracking and tracker output debugging
Does not cover
- benchmark cache generation or replay (
generate, eval, tune, research)
- ReID training, evaluation, comparison, or export
- native C++ build steps and
boxmot build
Use the sibling sub-skills for those routes.
Read first
- API reference
- Tracking workflows
- Detection and output formats
- Troubleshooting
- Smoke test script
Good prompts for this route
- "Track this video with ByteTrack and save the output."
- "Why does my tracker expect 7 columns instead of 6?"
- "How do I instantiate OccluBoost directly in Python?"
- "Why did my OBB track output lose the angle column?"
- "Which tracker objects support OBB input?"
Typical workflow
- Identify the detector/tracker inputs and whether the user is working with AABB or OBB tensors.
- Decide whether the user wants the CLI, the high-level
BoxMOT facade, or a direct tracker class.
- Use the tracker registry or the direct package export to construct the tracker.
- Check the input tensor shape before asking the user to run a long command.
- Confirm the returned
TrackResults schema and the det_ind mapping when debugging downstream consumers.
Entry points
CLI tracking
boxmot track --detector yolov8n --reid osnet_x0_25_msmt17 --tracker botsort --source video.mp4 --save
Python facade
from boxmot import BoxMOT
model = BoxMOT(detector="yolov8n", reid="osnet_x0_25_msmt17", tracker="botsort")
run = model.track(source="video.mp4", save=True)
Direct tracker class
from boxmot.trackers import OccluBoost
tracker = OccluBoost(reid_model=None, with_reid=False)
tracks = tracker.update(dets, image=frame)
What to hand off to nearby references
- Column and shape details belong in
references/data-formats.md.
- API signatures and registry details belong in
references/api-reference.md.
- Concrete workflow examples belong in
references/workflows.md.
- Shape errors, OBB support checks, and tracker misuse belong in
references/troubleshooting.md.
When a user asks for a smoke test or contract check, use scripts/tracker_contract_smoke.py instead of hand-writing a one-off snippet.
1---2name: tracking-and-trackers3description: "Use BoxMOT for live tracking, tracker construction, tracker4 selection, and AABB/OBB output schema debugging."5metadata:6 source: https://skillmd.com/skills/vectorspacelab/tracking-and-trackers7 disco-role: operating8disable-model-invocation: true9license: AGPL 3.010---1112# Tracking and Trackers1314Use this sub-skill when the task is about `boxmot track`, direct tracker instantiation, tracker registry lookup, output schemas, or explaining how AABB and OBB detections flow through the tracker API.1516## Covers1718- `boxmot track` and `BoxMOT.track(...)`19- `boxmot.trackers.registry.create_tracker(...)`20- direct tracker imports such as `boxmot.trackers.OccluBoost`21- tracker selection by name or class22- AABB and OBB detection layouts23- track result accessors such as `xyxy`, `xywha`, `id`, `conf`, `cls`, and `det_ind`24- per-class tracking and tracker output debugging2526## Does not cover2728- benchmark cache generation or replay (`generate`, `eval`, `tune`, `research`)29- ReID training, evaluation, comparison, or export30- native C++ build steps and `boxmot build`3132Use the sibling sub-skills for those routes.3334## Read first3536- [API reference](references/api-reference.md)37- [Tracking workflows](references/workflows.md)38- [Detection and output formats](references/data-formats.md)39- [Troubleshooting](references/troubleshooting.md)40- [Smoke test script](scripts/tracker_contract_smoke.py)4142## Good prompts for this route4344- "Track this video with ByteTrack and save the output."45- "Why does my tracker expect 7 columns instead of 6?"46- "How do I instantiate OccluBoost directly in Python?"47- "Why did my OBB track output lose the angle column?"48- "Which tracker objects support OBB input?"4950## Typical workflow51521. Identify the detector/tracker inputs and whether the user is working with AABB or OBB tensors.532. Decide whether the user wants the CLI, the high-level `BoxMOT` facade, or a direct tracker class.543. Use the tracker registry or the direct package export to construct the tracker.554. Check the input tensor shape before asking the user to run a long command.565. Confirm the returned `TrackResults` schema and the `det_ind` mapping when debugging downstream consumers.5758## Entry points5960### CLI tracking6162```bash63boxmot track --detector yolov8n --reid osnet_x0_25_msmt17 --tracker botsort --source video.mp4 --save64```6566### Python facade6768```python69from boxmot import BoxMOT7071model = BoxMOT(detector="yolov8n", reid="osnet_x0_25_msmt17", tracker="botsort")72run = model.track(source="video.mp4", save=True)73```7475### Direct tracker class7677```python78from boxmot.trackers import OccluBoost7980tracker = OccluBoost(reid_model=None, with_reid=False)81tracks = tracker.update(dets, image=frame)82```8384## What to hand off to nearby references8586- Column and shape details belong in `references/data-formats.md`.87- API signatures and registry details belong in `references/api-reference.md`.88- Concrete workflow examples belong in `references/workflows.md`.89- Shape errors, OBB support checks, and tracker misuse belong in `references/troubleshooting.md`.9091When a user asks for a smoke test or contract check, use `scripts/tracker_contract_smoke.py` instead of hand-writing a one-off snippet.