Image tracking

Also known as: marker tracking

On this page 7

Image tracking, also called marker tracking, is the augmented reality capability that detects a known two-dimensional image in the camera feed and continuously estimates its position and orientation in 3D space, so that virtual content can be attached to it. Extended reality developers use it to bring posters, product packaging, book pages and printed markers to life, and it is a standard feature of the toolkits covered by XR development.

Unlike general surface detection, image tracking relies on a reference image supplied in advance. The application knows exactly what to look for and how large it is in the real world, which gives it a precise, repeatable anchor that does not depend on the layout of the room.

How image tracking finds and follows a picture

Image tracking works in two phases: detection and tracking. During detection, the system extracts feature points, small distinctive patches such as corners and high-contrast edges, from each camera frame and matches them against descriptors precomputed from the reference image.

Once enough matches agree, the system solves a perspective-n-point problem to compute the image’s pose relative to the camera. Because the physical size of the image is known, the result has true metric scale. In the tracking phase, the image is followed from frame to frame with cheaper methods, and the device’s own visual-inertial tracking keeps the content stable during brief occlusions.

The table below summarizes the processing steps and their roles.

StepPurposeTypical cost
Reference preparationPrecompute features of the target imageOffline, once
Feature extractionFind distinctive points in the camera frameModerate per frame
Descriptor matchingLink frame points to reference pointsHigher during detection
Pose estimationCompute 6DoF pose of the imageLow
Frame-to-frame trackingFollow the image smoothlyLow
Processing steps in image tracking

What makes a good tracking image

Tracking quality depends heavily on the visual content of the reference image. Detectors need many distinctive, well-distributed features; images that look attractive to people are not necessarily easy for algorithms.

Most toolkits rate candidate images and warn about weak ones. A good image is rich in texture, high in contrast and non-repetitive, and it is printed on a matte, flat surface at a known size, typically at least 10 to 15 centimeters wide for hand-held viewing.

PropertyGood choicePoor choice
TextureDetailed, varied detailLarge uniform areas
ContrastStrong light-dark transitionsSoft gradients, pastel tones
PatternNon-repetitive layoutGrids, tiles, repeated logos
SurfaceMatte and flatGlossy, curved or crumpled
SizeMatches the declared widthPrinted at an unknown scale
Image properties and their effect on tracking

Declaring the wrong physical size is a frequent and subtle mistake: tracking still works, but the content appears at the wrong distance and scale, which breaks alignment with the real object.

Image tracking in development platforms

Image tracking is offered by all major AR frameworks, with similar concepts and different limits. ARKit and ARCore provide it natively on mobile devices, AR Foundation exposes both through one interface in Unity, and Vuforia popularized the technique with its own image targets and cloud recognition.

Developers typically supply a reference image library at build time or at runtime, then receive tracked-image objects with a pose and a tracking state such as tracking, limited or none. Web-based AR also supports image targets through dedicated libraries, though browser support for a native API remains limited.

ToolkitLibrary typeNotable trait
ARKitBundled or runtime imagesTracks several images simultaneously
ARCoreAugmented image databaseCan hold up to about 1,000 references
AR FoundationCross-platform image libraryUnified API over ARKit and ARCore
VuforiaDevice or cloud databasesMature target rating tools
WebAR librariesCompiled target filesRuns in the browser without installation
Image tracking features across toolkits

Image tracking sits beside other ways of anchoring content, each suited to different situations. Choosing the right one depends on whether the location is known in advance and whether a printed target is available.

  • Plane detection finds floors and tables anywhere but gives no specific, predetermined location.
  • Spatial anchors persist a location in a scanned room, yet they require a prior mapping session.
  • Object tracking recognizes three-dimensional objects from a scan, at higher preparation cost.
  • Fiducial markers such as square black-and-white codes are robust but visually intrusive.
  • Geospatial anchoring places content by global coordinates outdoors, with accuracy in meters rather than millimeters.

Image tracking is the best fit when the trigger is a printed item and the content must align with it precisely, such as an annotation on a specific diagram.

Limitations and common problems

Image tracking is sensitive to viewing conditions and to the target itself. Most failures can be predicted and designed around.

Lighting matters as much as the print. Dim or uneven light reduces contrast in the camera image and slows detection, while strong spot lighting creates specular highlights that hide features. Performance also suffers when an application tracks many images at once, because each additional active target adds matching work on every frame and drains the battery faster on mobile devices.

SymptomLikely causeFix
Image never detectedToo few featuresRedesign with more texture
Content jittersSmall image or distant viewingEnlarge the print
Detection fails at anglesSteep viewing angle above 60 degreesGuide users to face it
Content floats offGlare or reflectionUse matte printing
Wrong scaleIncorrect declared widthMeasure and update size
Symptoms, causes and fixes

In plain words

Image tracking lets a phone or headset recognize a specific picture. It might be a poster or a page in a book. The app then places digital content right on top of it. When you move the phone, the content stays stuck to the picture. It looks as if it were printed there.

This works because the app already knows the picture and its real size. So it can tell how far away the picture is. It can also tell the angle you are viewing it from.

A real-world example

A natural history museum adds augmented reality to a printed wall chart of insect anatomy measuring 60 by 90 centimeters. Visitors point a tablet at the chart, and a three-dimensional beetle appears over the drawing, with labels aligned to each body part on the print.

The developers first tested a minimalist version of the chart with large white margins, which the toolkit rated poorly and which tracked only at close range. After adding textured background illustrations and switching to matte paper, detection became nearly instant from three meters away. Visitor sessions grew longer, and the exhibit team reused the same reference images for a take-home leaflet.