Log in or register to post comments

check between image targets in a dataset and detect the specific

August 18, 2014 - 11:49pm #1

I would like to know, is it possible to load different image targets in dataset and detect which one is user showing on ARcamera in run time.For example: with a single image target object in unity and single dataset loaded on it, I am having 1 dollar image target and 10 dollar image target, and my application need to detect which target is scaned and do different action respectively.

In the given examples of vuforia, we have all the image targets placed. But for the application we develop, there will be large amount of photos and it will keep on changing, so is it possible to keep changing and tracking at runtime.

thanks in advance.

check between image targets in a dataset and detect the specific

August 19, 2014 - 6:44pm #3

actually, in the image target object, under image target behaviour, i need 165 dataset and 5 image target, and i need all them to be detectable at run time. so i think there is need of 165 image target object to be created and each bound to one dataset and then the 5 image target under each data set need to be checked at run time. 

check between image targets in a dataset and detect the specific

August 19, 2014 - 1:28am #2

I'm not sure if I understood correctly but if the problem is that you want to define only one content in the scene and trigger that on any target picture detected you can do it by addign llike flag in DefaultTrackableEventHandler if target is primary or secondary.

Drop as many image targets as you have in dataset to scene at same locationa nd scale and in inspector check only one to be primary.

Then add your content under primary target and let it behave as if you would have only one target.

In DefaultTrackable event handler when target is detected check if is secondary and if so then call targetFound (or targetLost) on primary target DefaultTrackableEventHandler.

BAsically all secondary will trigger primary one to show content. And you can also set a name of detected gameobject to primary DefaultTrackableEventHandler so you know in your scripts which target was actually detected.

 

Log in or register to post comments