Log in or register to post comments

Unable to recognize multiple trackables not simultaneously

July 11, 2012 - 3:20am #1

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 Smile.

 

Thanks for anyone's time.

Cheers.

 

Unable to recognize multiple trackables not simultaneously

July 12, 2012 - 3:59am #7

Great - glad to be of help :)

Unable to recognize multiple trackables not simultaneously

July 11, 2012 - 7:51am #6

NalinS wrote:

Hi nodelay

In that case can I suggest you look at the video playback sample we posted up:

https://ar.qualcomm.at/content/video-playback-sample-app-posted

https://ar.qualcomm.at/content/video-playback-sample-guidelines

Here it shows two simultaneous image targets being recognised and you can press play on either video that is being overlayed.

This should be a better starting point..

 

HTH

N

 

 

Oh Lord! 

This is such a beautiful news. Thanks, you really save my day.

I downloaded the files, compiled and everything is working properly. Thanks, this is exactly what I was looking at. 

Unable to recognize multiple trackables not simultaneously

July 11, 2012 - 7:05am #5

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

N

 

Unable to recognize multiple trackables not simultaneously

July 11, 2012 - 7:00am #4

Hi nodelay

In that case can I suggest you look at the video playback sample we posted up:

https://ar.qualcomm.at/content/video-playback-sample-app-posted

https://ar.qualcomm.at/content/video-playback-sample-guidelines

Here it shows two simultaneous image targets being recognised and you can press play on either video that is being overlayed.

This should be a better starting point..

 

HTH

N

 

Unable to recognize multiple trackables not simultaneously

July 11, 2012 - 5:51am #3

NalinS wrote:

Hi nodelay

In EAGLView.mm have you tried setting the following:

QCAR::setHint(QCAR::HINT_MAX_SIMULTANEOUS_IMAGE_TARGETS, 2);

...in the PostInitQCAR function

HTH

 

N

 

 

Yeah I already did, but nothing happened, any other hints?

Thanks anyway

Unable to recognize multiple trackables not simultaneously

July 11, 2012 - 3:56am #2

Hi nodelay

In EAGLView.mm have you tried setting the following:

QCAR::setHint(QCAR::HINT_MAX_SIMULTANEOUS_IMAGE_TARGETS, 2);

...in the PostInitQCAR function

HTH

 

N

 

Log in or register to post comments