My use case is that I want to track different objects kept in different rooms. I uploaded the images of object(1) and downloaded the WTO file and successfully able to track it by setting the targetcollection property of object tracker. Now for the object(2) how should I proceed? I tried having two objecttrackers in my single scene and setting the targetcollection property to different WTO files, but it is not working.
Asked
Active
Viewed 259 times
1

Piyush Nariani
- 35
- 1
- 7
-
Do you need to track multiple objects at the same time, or just recognize and track them individually, but in the same scene? – Alexandru Florea Mar 11 '19 at 10:53
-
I need to recognize them individually. So no two objects will be tracked at the same time. But I want to recognize them individually and load different prefabs as per the target. – Piyush Nariani Mar 11 '19 at 14:40
1 Answers
1
If you don't need to track multiple targets at the same time, you can use a single ObjectTracker with a single WTO file that contains two targets.
In the Target Manager, you can add the second object to an existing project, resulting in a WTO file with two targets.
In Unity, the ObjectTrackable has OnObjectRecognized and OnObjectLost events, which will allow you to distinguish between which target is currently tracked, so you can enable / disable augmentations as necessary.

Alexandru Florea
- 76
- 2