How to Create an Image Target in Unity with Vuforia

Shahrooz Shekaraubi
3 min readFeb 8, 2023

--

Augmented Reality Image by Shahrooz Shekaraubi

In another article I discussed how to make a UX prototype in Unity, but in this article, I want to show a short example on how to use Vuforia to generate an Image Target in Unity in this lesson. You will import a picture straight into Unity rather than uploading it to the Vuforia database.

To begin, make a new Image Target and give it the name “Card One Target.” Go to the Type box and choose “From Image.” You can use this option to change a regular image into an Image Target within Unity.

Add two photos to your Unity project next. To store the photos, make an Image Targets subdirectory inside the Data Files folder in the Assets folder. Into the Image Targets folder, copy the images.

Drag the Card One image to the Image Target after choosing it. You’ll see that the Image Target’s scale is modest because the width is by default set to 0.17. Go to the Advanced menu and set the width from 0.17 to 5 to enlarge the Image Target. You are unable to determine the star rating of your image while using the From Image option, which is a significant drawback. It’s possible that the 3D model won’t be clearly seen on the Image Target if it has a low star rating (two stars or less). Check the star rating after uploading the Image Target to a Vuforia database to prevent this.

In order to see if the target object is visible on top of the Image Target, you can lastly make a cube or any other game object a child of the Image Target. If the cube is discernible, the webcam is able to identify the Image Target.

In conclusion, this tutorial demonstrated how to use Vuforia’s From Image option to build an Image Target in Unity. You can create an Image Target by applying these steps to a regular image instead of submitting it to the Vuforia database.

--

--