AI Glossary / Computer vision and multimodal AI / Intermediate

Visual tracking

Definition

Visual tracking is the estimation of an object's location or state across a sequence of images while maintaining correspondence with the same target over time. A tracker may follow one selected object, many detected objects or particular visual features. Its output is a temporal estimate rather than a collection of unrelated frame-level detections.

What it means

Detection asks where an object appears in a particular image. Tracking adds the question of whether a later observation belongs to the same object. That continuity supports trajectories, crossing counts and motion analysis.

A track identifier is usually a temporary label used by the system. Following a person as track 12 does not establish that person's real-world identity. Likewise, a box that remains visible on the screen does not prove that the target has been observed in every frame: some positions may be predictions.

Tracking can fail through drift, lost targets or identity switches. These errors matter differently from a slightly misplaced box, especially when a downstream decision depends on an entire trajectory.

How it works

A single-object tracker can begin with a selected target region and update its location in successive frames. A multiple-object system commonly combines detections, motion predictions, appearance evidence and a procedure for associating observations with existing tracks.

The system must also decide when to start, retain and end tracks. If an object is temporarily hidden, prediction may preserve continuity while uncertainty grows. A later detection may restore the track, begin a new one or be assigned incorrectly.

Motion models provide expectations, not guaranteed future paths. Appearance features help distinguish similar trajectories but can change with lighting, pose or occlusion. Camera movement also affects image coordinates. A useful output therefore indicates confidence or uncertainty and distinguishes measured updates from unsupported continuation.

Three practical examples

  • A conveyor inspection system follows packages across successive frames so that repeated detections of one package are not counted as separate items.
  • A sports-analysis tool estimates the trajectory of a visible ball and flags intervals where occlusion prevents a reliable observation.
  • A video editor follows a selected object to position a graphic, reviewing frames where the target changes appearance or leaves the image.

Think of it this way

Think of following two similar suitcases through a sequence of photographs. You use their previous positions and distinguishing details to decide which suitcase is which.

The analogy is limited because an automated tracker works with imperfect measurements and explicit decision rules. It cannot assume that the nearest suitcase is always the same one, or that a suitcase remains where its predicted marker appears after it is hidden.

Worked example

Why association matters

Imagine two packages moving horizontally across an image. At time zero, package A is at x = 10 pixels and package B at x = 30. One second later, A is at 18 and B at 22. Their estimated velocities are therefore +8 and -8 pixels per second.

At the next second, a constant-velocity prediction places A at 26 and B at 14. Suppose detections appear exactly at 14 and 26, but have no distinguishing appearance information.

Matching each detection to the nearest previous position would assign A, previously at 18, to 14 and B, previously at 22, to 26. Both matches are only four pixels away, yet both identities would be wrong under the stated motion.

Matching to the motion predictions instead preserves A at 26 and B at 14. That succeeds in this invented example because the motion remains constant. If the packages reversed direction, the same assumption could mislead the tracker.

The lesson is not that one matching rule always wins. Tracking needs evidence and assumptions appropriate to the scene, and evaluation must check identity continuity as well as whether objects have boxes around them.

Illustrative case study

Illustrative case study - fictional

A fictional distribution center tests camera-based package counts at a narrow transfer point. Detection looks accurate in individual frames, but the daily count is inflated when packages disappear behind a support and reappear with new track identifiers.

The team reviews complete annotated sequences, including occlusions, and changes how crossings are counted and how uncertain tracks are handled. It checks the result against an independent manual count instead of assuming that longer-lived tracks automatically mean better performance.

It also records when packages leave the camera's view, so an ended track is not confused with a processing failure. This is an illustrative diagnosis, not a claim of measured savings or deployed accuracy.

Common misconceptions and mistakes

  • Tracking is not the same as repeatedly detecting objects without linking observations.
  • A track identifier is not proof of a person's identity.
  • A predicted location during occlusion is not a direct observation.
  • A smooth trajectory can still follow the wrong object after an identity switch.
  • Image displacement is not automatically physical speed. Camera geometry, scale, timestamps and camera motion affect that interpretation.

Business use

Tracking supports workflows where continuity matters: counting items once, measuring visible movement or attaching information to a moving target. Evaluate it using complete sequences representative of the intended environment.

Check missed objects, false tracks, identity switches, interruptions and downstream counting errors. Include crowded scenes, similar-looking objects, entry and exit, blur and occlusion. Record the timing and coordinate system. Where people are involved, limit collection and retention to the stated purpose. Decide how the application should respond when a track becomes uncertain rather than silently treating every estimate as fact.

People also ask

Must the object move for visual tracking to be useful?

No. The camera may move, or the task may require maintaining correspondence with a stationary target across changing views.

Can tracking continue when the object is hidden?

A system may predict a state temporarily, but the estimate becomes less certain without supporting observations.

Does tracking require a neural network?

No. Classical tracking methods exist, although learned detectors and appearance representations are common components in many systems.

Check your understanding

Every package has a correctly positioned box in each frame, but two package identifiers swap at a crossing. Is the tracking necessarily correct?

Answer: No. Localization can be correct while identity continuity fails, which can corrupt trajectories or counts.

Related terms

  • Optical flow
  • Kalman filter
  • object detection
  • data association
  • occlusion
  • identity switch

Learn next

Annotate two similar objects through a crossing and a brief occlusion. Compare frame-level detection accuracy with identity continuity and the final event count. Mark predicted positions separately from observed updates.

More in Computer vision and multimodal AI

  • Visual microphone - A visual microphone is a method that estimates sound from tiny sound-induced vibrations visible in video of an object.
  • Visual routine - A visual routine is a sequence of elementary visual operations used to determine a shape property or spatial relationship.
  • Visual temporal attention - Visual temporal attention is a mechanism that assigns different importance to visual information from different times in a sequence.
  • Visual Turing Test - A Visual Turing Test is an evaluation approach that probes a computer vision system through questions about visual content.
  • Von Kries adaptation - Von Kries adaptation is a model of chromatic adaptation in which the three cone-response channels are adjusted by separate multiplicative gains.
  • Ward histogram-based tone mapping - Ward histogram-based tone mapping is a high-dynamic-range image reproduction approach that adjusts a luminance histogram to fit a display's range while...

Sources

Sources: MathWorks, Multiple Object Tracking: https://www.mathworks.com/help/vision/ug/multiple-object-tracking.html ; OpenCV, Tracker class reference: https://docs.opencv.org/4.13.0/d0/d0a/classcv_1_1Tracker.html . Relevant detection, prediction, association, track-management and target-update documentation was reviewed.

Previous: Visual temporal attention Next: Visual Turing Test

  • Home
  • Daily AI Updates
  • Blog
  • AIFBL Academy
  • AI Glossary
  • Products and Tools
  • Store
  • Free CFO AI Prompt Pack
  • About Shihan Sheriff
  • Privacy Policy
  • Terms of Use
  • Refund Policy
  • Cookie Policy
  • Earnings Disclaimer