Documentation

Best practice for Object Targets

Characteristics of easy trackable objects

  • Structure and size of the object are very important. Very small objects (< 5cm/2-inch) are challenging as well.
  • Object should be more or less static. Dynamic and deformable parts are ok, as long as the majority of the object stays static. Try to record only the static parts of your object.
  • Shiny and glossy surfaces on the objects are challenging. Again it depends on the amount of glossy surfaces in the object.

How to create a video as input for Object Targets

General information

This article should help you with the creation of a video which is needed for Wikitude’s Object Recognition feature. We want to explain how to make sure the object is lightened properly, how to avoid disturbing scenery around the object and how to make sure you can capture the object from all sides.

Setup

Make sure you find a room with enough space to move around freely and a table, where you can place your object on.

Lighting

One of the major factors to get a good working Object Target for object recognition is proper lighting. To achieve this soft boxes work really well. They are also rather cheap and easy available. We recommend soft boxes with a tripod and 3 boxes to place them around the object for homogeneous light conditions.

Softboxes give proper light

Background

To avoid tracking items in the background, it is helpful to mount a photo studio background behind and beneath the object. It is important to have a soft curve from the wall to the table or floor, to avoid edges in the background.

White noise-free background

Rotating turntable

To be able to recognize the object from all sides it is necessary to capture it from all sides. This is much easier if you place the object on a rotating turntable, a rotating cake stand or something similar and which works for the size of your object. Make sure that the surface is non-reflecting and in the same color as the background.

DIY rotating platform

Filming

For the filming make sure you find a good camera. A newer smartphone should work well and if you can change the exposure value, even better. Sometimes it is necessary to reduce the exposure value to stop flickering because of fluorescent light bulbs. You will recognize this immediately watching your video.

Re-encode for smaller file size

We recommend to re-encode the video before uploading to video. Make sure you keep aspect-ratio of the video while doing so. There are several tools that re-encode videos reliably and fast. We have been using Handbrake for Mac, which shows pretty good results. Again make sure you don't change the aspect-ratio of the video while re-encoding.

Some important general advices: Please read carefully!

  • Start with a sideway movement in the beginning, that is parallel to the object.
  • Objects should be placed in the center (as big as possible to reduce background noise)
  • Move slowly when capturing the object
  • If you don't want to recognize the object from a particular side you also don't have to capture it.
  • Film from different distances if you want to recognize the object from different distances.
  • Recording should be done in landscape
  • The video should be a few seconds long (10 seconds or longer)
  • Shadows in the video are treated like they belong to the object.
  • While moving closer will get you more details, try not to capture the object at close range.
  • Just capture the sides that you actually want the object to be recognizable from.
  • Do not crop the video frame and by that change the aspect ratio of the video.
  • Re-encoding into a different codec is fine. Also scaling the video, while keeping the same aspect ratio is fine.

Make sure you place the object stable on the rotating turntable, choose a side of the object with some structure and start capturing the video. Move close to the object to get some details, move back, get the upper part of the object and cover the whole surface of the current side. Now start rotating the object and capture the object from all sides. While rotating try to get some interesting details with good structure, this will increase the stability of the recognition and tracking. When you captured the object from all sides stop recording and check if there is no flickering and the video is looking good.

Infographic of recording

Overall setup with object

Overall setup

Using 3D or CAD software

Of course you don't have to shoot the video of your object on your own, but can use a rendered video from any 3D modeling or CAD software. If you do so, choose a similar rendering path as described above.

  • First few seconds parallel movement (translation)
  • Rotation around the object
  • Capturing top-side
  • Zoom out and in again

Make sure you export your rendering in one of the supported formats (mp4 or mov).

Sample of a video

This is the video we were using as source for creating an Object Target for our sample application (the fire toy truck).