"We offer new support options and therefor the forums are now in read-only mode! Please check out our Support Center for more information." - Vuforia Engine Team

Unable to recognize multiple trackables not simultaneously

Hi everybody,

I'm a newbie playing few weeks with Vuforia for iOS. I slightly modified ImageTarget example to play video instead 3D objects using a Queue that stores each video frame and renderFrameQCar method in EAGLView.mm binds 25 frames per second.

My problem, instead, relies on recognizing different trackables. In ImageTargetsAppDelegate's applicationdidFinishLaunchingWithOptions: I added this

[qUtils addTargetName:@"page_1" atPath:@"page_1.xml"];

[qUtils addTargetName:@"page_2" atPath:@"page_2.xml"];

But only the first one (page_1) get recognized (the default as they say). If I swap those two lines of code than only the second page gets recognized.

The problem is that in renderFrameQCar's for cycle:

state.getNumActiveTrackables();

returns 0 while capturing the second trackable and 1 while capturing the first. Can anyone could figure out why?

I didn't even understood which is the method that actually recognizes the trackable because I couldn't find any. It would be great to have some more infos about writing an iOS program from scratch that uses Vuforia Image removed..

 

Thanks for anyone's time.

Cheers.

 

Actually, looking at your code again you can only have one active dataset at a time :)

This is the problem...

What you need to do is to put all the images you want to track into a single dataset, and then set #simultaneousTargets and it should work...

 

HTH