Log in or register to post comments

Can't get Vuforia to recognize target image in Unity iOS

May 17, 2016 - 3:54pm #1

I can't for the life of me get Vuforia to recognize my (or any) target image. I'm using the Unity extension with an iOS build to my iPad Air 2. It is interfacing with the built in camera on my laptop when I play it from the editor, and the iPad camera when I build it. I can get my object (primitive cube) to show up superimposed on the screen as a child of the image target, but I can't get Vuforia to recognize the target that I have printed out. I've tried it with the supplied dataSets (chipsAndStones, with stones as image) and with my own target image that I uploaded to a target image database and installed in my project. I've followed all the instructions in the "Getting Started" section for the Unity extension.

I've attached screenshots...can anyone tell me what I'm doing wrong?

Can't get Vuforia to recognize target image in Unity iOS

May 18, 2016 - 10:27am #5

Hello,

Play mode short-circuits the need to deploy to a device. Reviewing "Screen Shot 2016-05-18 at 10.38.22 AM.png" it looks like you're using this feature.

What I did notice is that your target in "Screen Shot 2016-05-18 at 10.38.22 AM.png" does not follow best practices for planar targets: https://developer.vuforia.com/library/articles/Best_Practices/Attributes-of-an-Ideal-Image-Target. That design is challenging for recognition so I'm not surprised that it is not recognized by the SDK.

Do you have the same issue when running the Vuforia ImageTargets sample scene, using the chips/stones target?

Thanks.

Can't get Vuforia to recognize target image in Unity iOS

May 18, 2016 - 10:16am #4

Ok, I got it working with another image. For some reason it still won't work with the target image I had in the screenshots.

Thanks!

Can't get Vuforia to recognize target image in Unity iOS

May 18, 2016 - 9:47am #3

If by loading and activating the dataset you just mean checking the check boxes, I've tried that and still can't get it to work. I've attached the screenshots below. I am printing with the same aspect ratio. 

Also, does the target recognition work directly from the editor, or do I have to do an actual Xcode build each time? (I've been doing both, to no avail, but the Xcode build is tedious as it takes a few minutes each time). 

 

 

Can't get Vuforia to recognize target image in Unity iOS

May 17, 2016 - 4:12pm #2

Hi,

From the supplied screen shots, it looks like you have not loaded and activated your dataset. Without doing this, Vuforia will not detect your printout/s.

One other gotcha: Always print your targets in the native aspect ratio of the picture (or the same aspect ratio as was uploaded to the Target Manager). Stretching of the printed image will adversely effect detection. This is a very common mistake as most print dialogue boxes have options like "fit to page" pre-checked.

Good luck.

Log in or register to post comments