"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

Multiple targets in Unity VisualSearch

Hello, 

I've uploaded 2 different image targets to the server and I'm trying to make the unity app recognize them and assign a different model to each one.

How do I do that?

 

-Nathan

DavidBeard

Mon, 11/12/2012 - 00:47

You can accomplish that by customizing your search result event handling within the CloudRecoEventHandler's OnNewSearchResult method.

 

public void OnNewSearchResult(TargetFinder.TargetSearchResult targetSearchResult)

    {

NathanDortman

Mon, 11/12/2012 - 09:53

Thanks for the snippets :)

I was wondering about pre-authoring the augemntations within Unity.

How can I accomplish that in the designer without any code?

 

Thanks
Nathan

AlessandroB

Mon, 11/12/2012 - 12:43

Hi Nathan, just a side note:

if you use the Cloud Reco, your typical use case would be to have a large number of image targets uploaded on the cloud;

DavidBeard

Tue, 11/13/2012 - 18:25

The Cloud Reco Event Handler is already a component of the CloudRecogntion prefab, so you don't need to add anything new, simply modify CloudRecoEventHandler.cs.

NathanDortman

Wed, 11/14/2012 - 09:21

Hey David,

I do not see any file called CloudRecoEventHandler.cs, nor do I see ICloudRecoEventHandler used anywhere in the code, could it be that I'm using an outdated version?

Thanks,
Nathan

NathanDortman

Wed, 11/14/2012 - 16:54

Hey Nalin & David

As far as I understand (from Carla and Roy) 2.0.21 isn't available to developers yet.

Could you rephrase your answers with 2.0.18 in mind?

Thanks
Nathan

 

DavidBeard

Wed, 11/14/2012 - 21:03

Let me check on the status of the update so that you're not wasting your effort. 

For 2.0.18 you'd implement this in the EnableNewResult method of the CloudRecoBehaviour - see line 203 for instructions.