VisionTrack — Multi-Object Tracking Study
A multi-object tracker built from first principles — Kalman filter, Hungarian assignment and ByteTrack association — used for a significance-tested study of which tracking tricks actually help. On PyPI, with a C++ version 21–69× faster.
VisionTrack is a real-time multi-object tracker written from first principles — no third-party tracking libraries — then packaged as a real SDK and a live demo site. It is published on PyPI as visiontrack-mot and runs in the browser at visiontrack.hulage.in.
The problem
Object detection tells you what is in a single frame. Tracking is the hard part: keeping a stable identity on each object as it moves, is occluded, and reappears — frame after frame, in real time. I wanted to build that machinery myself rather than import a black box, to actually understand the math.
How it works
- From first principles — an 8-state Kalman filter predicts each track’s next position, an O(n³) Hungarian solver optimally matches detections to tracks, and ByteTrack-style association recovers low-confidence detections that a naive tracker would drop.
- Lifecycle state machine — tracks are born, confirmed, coasted through misses, and retired on explicit rules, which is what keeps identities stable through occlusion.
- Built to ship — the per-frame hot path was profiled and tuned for ~1.5× throughput; the library has a stable public API, 1,000+ automated tests, and CI across supported Python versions.
The study
On top of the tracker sits an experiment harness that runs on real MOT17 and DanceTrack data with repeated seeds and paired significance tests, with HOTA and IDF1 checked against the standard trackeval tool to within 1.4e-3. Three questions, answered either way:
- Does appearance matching (re-ID) help? Yes — deep re-ID significantly cuts ID switches on both datasets.
- Does a learned motion model help? It predicts 12.5% better where motion is non-linear (dance), but it makes tracking worse on both datasets. That negative result is published, not dropped.
- Does calibrated uncertainty help? No — null as a cost term, and calibrating the filter to real motion hurts badly under noisy detections.
The C++ version
A separate C++ ByteTrack, visiontrack-cpp, runs 21–69× faster and is gated on matching the NumPy version bit for bit — the Python code is the reference it must agree with.
The demo
The core algorithm was ported to JavaScript so the site runs an on-device webcam tracker with nothing leaving your machine, alongside teaching, benchmark, and video-upload routes that make the internals legible to both engineers and non-technical visitors.