Problemcore
Visual object tracking
Also called single object tracking, model-free tracking.
Given the box of a target in the first frame of a video, find its box in every later frame.
- Time
- Θ(N P) worst
- Where
- N = the number of frames; P = the number of pixels of one frame
- Model
- Real RAM
Visual object tracking is the problem of following one target through a video when the only information about the target is a box around it in the first frame. The tracker must output a box in each later frame, using the frames up to that one, and some versions also ask it to say when the target is not visible. Nothing is known in advance about the class of the target, so the tracker must build a model of its appearance from that one box and keep the model useful while the target turns, deforms, changes its light or is hidden. The problem is the basis of video surveillance, camera control, robots that follow people and many measurements in science. Because two parts of a scene can look the same, no method is correct on every video. Trackers are compared on benchmarks of annotated videos by the overlap between their boxes and the true boxes.
In plain words
Someone draws a rectangle around a thing in the first picture of a video and says: follow this. In each next picture you must draw the rectangle where the thing is now. You do not know what the thing is, only what it looked like in that first rectangle. It can move, turn, get bigger or smaller, go into shadow or go behind something else. You may only look at the pictures up to the present one, as a live camera would. A good tracker stays on the thing, does not jump to something that looks similar, and admits when the thing has gone.
Definition
The input is a sequence of frames , each a digital image of pixels, and a box around the target in . Pixel has its center at the point . The output is a box for each . In the long-term version may also be "absent". A tracker is causal if depends only on and .
Quality. Let be the true box. The overlap of two boxes is the intersection over union
and the center error is the distance between the centers of and . Common scores built on them are these.
- Success rate. The fraction of frames with . The success plot shows it for from 0 to 1, and the area under the plot summarizes it.
- Precision. The fraction of frames with a center error below a threshold in pixels.
- Accuracy and robustness. In the evaluation of the VOT challenges, the tracker is restarted after each failure. Accuracy is the mean overlap on the tracked frames, and robustness counts the failures.
A tracker is judged on many videos, because one video can favor any method.
Variants
- Short-term tracking. The target is visible in almost every frame, and the tracker always outputs a box.
- Long-term tracking. The target can leave the view or be hidden for a long time. The tracker must report absence and find the target again, as tracking-learning-detection does.
- Point tracking. The target is a point, or a set of points, and the output is its position, as in the Kanade-Lucas-Tomasi tracker.
- Contour and mask tracking. The output is an outline or a mask instead of a box, as in the CONDENSATION algorithm or with active contours.
- Rotated boxes and scale. Some benchmarks use rotated boxes, and some trackers keep a fixed size.
- Many targets. Following all objects of known classes, with identities, is multi-object tracking, a different problem with its own metrics.
- Other sensors. Depth images, thermal images or event cameras add or replace the color frames.
Examples
Overlap by hand. For and the intersection is the unit square, so . For the intersection has area 2, so . A box shifted by half its width has an overlap of only , so the usual threshold is strict.
A success score. A tracker on a video of 5 frames has overlaps . At the success rate is . The success plot is the fraction of overlaps above each . The area under it equals the mean overlap, , because the area under the curve is .
An ambiguous video. Two identical balls roll toward each other, touch in frame 10 and move apart. The target is the left ball. The frames are the same whether the balls bounced back or passed each other, so the true box after frame 10 is on different balls in the two cases, and every tracker is wrong on one of them. Motion models help when the physics is known, but they cannot remove this kind of ambiguity.
Known algorithms
| Algorithm | Model of the target | Cost per frame |
|---|---|---|
| Kanade-Lucas-Tomasi tracker | small windows around corners, translation | per point |
| Mean-shift tracking and CAMShift | color histogram in a kernel | for steps on pixels |
| MOSSE filter and kernelized correlation filter | correlation filter learned online | |
| Tracking-learning-detection | flow tracker, detector and online learning | linear in the number of windows scanned |
| Siamese tracking | embedding learned offline, fixed exemplar | one network pass and one correlation |
| CONDENSATION algorithm | contour with dynamics, sample set | for samples |
| Inverse compositional alignment | template with a warp | per iteration for warp parameters |
Here is the number of pixels of the target region, of a window and the number of iterations. Tracking by detection runs a detector in each frame and links its outputs. A Kalman filter or a particle filter can be put on top of any of these to smooth the boxes.
| Algorithm | Time | Space | Properties | Code |
|---|---|---|---|---|
| CAMShift | Θ(W H + k m) worst · average | Θ(W H + B) extra | deterministicnot exactiterativelocalonline | 1 language |
| CONDENSATION algorithm | Θ(T N (log N + d² + M L)) worst · average · best | Θ(N d) extra | randomizednot exactnot iterativenot localonline | 1 language |
| Kernelized correlation filter | Θ(N P log P) worst · average · best | Θ(P) extra | deterministicnot exactnot iterativelocalonline | 1 language |
| Mean shift tracking | Θ(k (j + 1) (m + B)) worst · average | Θ(m + B) extra | deterministicnot exactiterativelocalonline | 1 language |
| MOSSE filter | Θ((T + N) P log P) worst · average · best | Θ(P) extra | deterministicnot exactnot iterativelocalonline | 1 language |
| Siamese fully convolutional tracking | Θ(N (S (F + C Z M) + U² M)) worst · average · best | Θ(C (X + Z) + S M + U² M) extra | deterministicnot exactnot iterativelocalonline | 1 language |
| Tracking-learning-detection | Θ(N (P + W (D + M Q) + G)) worst · average | Θ(P + W + M Q + C) extra | randomizednot exactnot iterativenot localonline | 1 language |
Bounds
- Reading the frames. A tracker that must find the target anywhere in the frame, for example after the target was hidden, must read every pixel in the worst case: a pixel it does not read could hold the target. So time per frame and in all is needed, and a detector that scans the frame in linear time meets it. Local trackers read only a window around the last position and are faster, but they lose a target that jumps out of the window.
- No tracker is always right. If two videos have the same frames but different true boxes, as in the ambiguous example, a tracker gives the same output on both and is wrong on at least one. So any guarantee needs assumptions on the scene, such as a unique appearance or a known motion.
- Drift. A tracker that updates its model from its own output can add a small error at each frame. With an error of pixels per frame in a random direction, the position error after frames grows like , and with a constant bias like . Methods that keep the first appearance, or check their output against it, limit this.
Reductions
- To template matching. With a fixed appearance and translation only, tracking in one frame is template matching in a search window, for example by normalized cross-correlation.
- To image registration. With a parametric warp of the target, it is image registration of the target region, solved by the Lucas-Kanade method or inverse compositional alignment.
- To filtering. With a motion model and a likelihood of the image given the state, it is a Bayes filter, solved by a Kalman filter in the linear Gaussian case and by a particle filter otherwise.
- To detection. With a detector for the class of the target, each frame becomes object detection, and tracking is the association of detections over time.
- To optical flow. Tracking a point is following the optical flow from frame to frame.
Applications
- Surveillance and traffic cameras that follow people or vehicles.
- Pan-tilt cameras and drones that keep a subject in view.
- Tracking of a face or a hand for interfaces, and of tools in medical video.
- Measurement of the motion of cells, animals or particles in science.
- Annotation of video, where a person draws the first box and a tracker fills the rest.
- Visual servoing of robots and the following of a target by a vehicle.
References
- Alper Yilmaz, Omar Javed and Mubarak Shah, Object tracking, a survey, ACM Computing Surveys 38(4), article 13, 2006, the whole paper (the representations of objects, point, kernel and silhouette tracking)
- Arnold W. M. Smeulders, Dung M. Chu, Rita Cucchiara, Simone Calderara, Afshin Dehghan and Mubarak Shah, Visual tracking, an experimental survey, IEEE Transactions on Pattern Analysis and Machine Intelligence 36(7), 2014, 1442 to 1468, the whole paper (nineteen trackers compared on 315 video fragments, survival curves)
- Yi Wu, Jongwoo Lim and Ming-Hsuan Yang, Object tracking benchmark, IEEE Transactions on Pattern Analysis and Machine Intelligence 37(9), 2015, 1834 to 1848, the whole paper (the annotated sequences, the success plot from the overlap and the precision plot from the center error)
- Matej Kristan, Jiri Matas, Aleš Leonardis, Tomáš Vojíř, Roman Pflugfelder, Gustavo Fernández, Georg Nebehay, Fatih Porikli and Luka Čehovin, A novel performance evaluation methodology for single-target trackers, IEEE Transactions on Pattern Analysis and Machine Intelligence 38(11), 2016, 2137 to 2155, the whole paper (accuracy and robustness, restarts after a failure)
Where this leads
About this page
The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H0 no proof |
|
| Lean | L0 no Lean part |
|
| Visual | V0 none |
|
| Writing | W2 basic |
|
Tag 19P0YM Edit this page History Report an error Markdown