World Effects
Target Tracking Best Practices

Best Practices for Target Tracking in Spark AR Studio

A 3D object in front of a tracked target.

Before you choose a target image for your target tracking effect, it’s a good idea to check these best practices. Not all images make good targets. Choosing a bad target image could mean your effect doesn’t respond to it.

This guide will help you:

  • Choose a target image the camera can easily identify.
  • Consider the placement of the target in the world - for example its proximity to the camera.

Choosing a good target image

Make sure your target image follows these principles, so your effect will work when the target is detected by the camera.

High contrast

Both color and black and white images will work. Either way, all images should have high tonal contrast. This means avoiding images with lots of pastel colors.

The image on the left would make a good target as there’s lots of contrast. The image on the right wouldn’t:

A crisp and clear illustration (left) and a pastel, watercolor pattern (right).

Try turning your target image to grayscale to check there’s enough contrast. If it’s all a similar shade, there probably isn’t.

High Resolution

Make sure your image has a resolution of at least 300x300 pixels.

The image on the left would make a good target. The image on the right wouldn’t:

A high resoloution image (left) and a low resoloution image (right). Both show an illustrated pattern.

Sharp details

Try to stay away from smooth or soft edges and textures with a lot of gradients.

The image on the left is a good example of a target with lots of sharp edges:

An image with many sharp edges (left) and one where colors overlap and blend (right).

Asymmetrical patterns and compositions

Avoid symmetry and repeated patterns. Images that can easily be inverted might not track as well.

The image on the left is a good example of an image that will track well. The image on the right has a lot of symmetry, so would not make a good target:

An image of a city street (left) and an illustration of a mandala (right).

Complex images

Simple images might not work well. You should also avoid repeating the same motifs.

The image on the left has enough complexity, plus other good practices like high contrast and sharp details. The image on the right is too simple with too much repetition:

A piece of graffiti art (left) and a repeating wallpaper patern (right).

Find flat surfaces

Images on curved surfaces like bottles won’t work well, as target tracking is meant for flat surface images.

In the image on the left the target is flat against the front of the can. This will make a good target. With the can on the right the image is curved along the side which won’t be easily detected by the camera:

An image of a logo printed on a can vertically (left) and horizontally (right).

Clear target shapes

Target images can be all sorts of shapes. They don't have to be rectangular or square. However, you should still think about how clear the target image will be.

For example, a target image on thin paper like money will move and distort because the paper is thin, making it difficult for the camera to identify the target. With the image on the left, the target is flat and static, creating a clear target.

A burger restaurants logo (left) and a pile of currency notes (right).

Avoid blank space or transparency

Avoid targets with lots of transparency or blank space around the actual image, like in the image below on the right:

A design that fills the available space (left) and one with a lot of white space around it (right).

The placement of the target

Target AR effects work best when the camera is closer to the image, so it fills a large portion of the device frame.

Large targets work better too. Small images like stickers might not work, even when in the full frame.

Good target placement

The examples below are a movie poster and cereal box. These are fairly large objects that people can easily get close to for a good length of time:

A movie poster (left) and a cereal box (right).

Bad target placement

The examples below, a highway billboard and a sticker, might not work well. It’s unlikely someone could get close enough to the billboard for a good length of time, and the sticker is too small:

A sign hanging above a highway (left) and stamps (right).
Was this article helpful?