Sub topic 1
What Multi-Object Tracking Asks For
Prerequisites
Assume you know the basics of object detection, bounding boxes, and video frames. You should also be comfortable with Python-style indexing and the idea that a model produces predictions with confidence scores. No Kalman filter or deep learning implementation is needed in this chapter.
The tracking problem
Object detection answers a per-frame question: “Which objects are visible in this image, and where are they?” A detector might return three boxes labeled person, each with a confidence score. When the next frame arrives, the detector produces a new, unrelated set of boxes.
Multi-object tracking (MOT) adds identity over time. It answers: “Which detection belongs to which object that I saw earlier?” The tracker assigns a stable track ID, such as person-7, to each object and updates that ID as the object moves through the video.
A track is therefore a time-ordered sequence of observations:
track-7 = (frame 12, box A), (frame 13, box B), (frame 14, box C)
The boxes can change position and size. The ID should remain the same while the observations represent the same physical object.
How MOT differs from related tasks
| Task | Number of targets | Main output | Identity across frames |
|---|---|---|---|
| Object detection | Any number per frame | Classes, boxes, and scores | Not preserved |
| Single-object tracking | One chosen target | Location of that target | Preserved for one target |
| Multi-object tracking | Several changing targets | Locations and persistent IDs | Preserved for many targets |
Single-object tracking usually starts with one target selected in the first frame. MOT must discover targets from detections, handle objects entering and leaving the scene, and decide what happens when two objects overlap.
MOT is not simply “run detection repeatedly.” Suppose two people cross paths. The detector may identify both people in every frame, but it does not tell you whether the left-side box in the current frame belongs to the person who was previously on the left. The tracker must associate current detections with existing tracks.
What a tracker must maintain
At each frame, a practical tracker manages three groups:
- Matched tracks: existing identities assigned to current detections.
- Unmatched tracks: identities with no detection in the current frame. They may be temporarily hidden or missed by the detector.
- Unmatched detections: new observations that may represent objects entering the scene or false positives.
A tracker combines the current detections with information from earlier frames. That information can include the last bounding box, estimated motion, and visual appearance. The result is a set of trajectories rather than isolated predictions.
Why identity matters
Persistent IDs enable higher-level questions that detection alone cannot answer:
- How many unique people entered a region?
- How long did each vehicle remain in a lane?
- Which object crossed a safety boundary?
- Did the same package move from one camera view to another?
The quality of a tracker depends on more than box accuracy. A tracker can find the correct objects but still fail if it frequently changes their IDs. These identity changes are called ID switches. Later chapters will examine how association methods and motion models reduce them.
> callout note > A detector describes what is visible now. A tracker maintains hypotheses about what those observations represent over time.
Exercise
A detector finds two cars in every frame, but it assigns fresh labels independently in each frame. Can its output alone answer how long car 3 stayed in the scene?
Show answer
No. The detections show where cars appear, but they do not preserve which current box belongs to the same physical car. A tracker must associate detections across frames.