Log in or register to post comments

TargetFinder.TargetSearchResult does not have MetaData

February 7, 2019 - 12:12am #1

I have upgraded the Vuforia version to 8.0.10 with Unity.

Now I found that the function OnNewSearchResult (TargetFinder.TargetSearchResult targetSearchResult) which used to get triggered when we scan any image doesn't show MetaData field in it.   And because of this the code broke and i am not able to scan any trigger any longer.

Please help me with this as this is a showstopper for me right now.

TargetFinder.TargetSearchResult does not have MetaData

February 13, 2019 - 4:20pm #4

Good day

 

I've had the same issue, and I managed to find the solution.. despite not being helped much by the release notes

Anyhow, you first need to cast your targetSearchResults into a CloudRecoSearchResults. 

 

TargetFinder.CloudRecoSearchResult cloudResult = (TargetFinder.CloudRecoSearchResult)targetSearchResult;

Debug.Log(cloudResult.Metadata);

 

The CloudRecoSearchResults contains the Metadata property which you'd usually refer to.

 

I hope that helped!

 

Have a wonderful day

TargetFinder.TargetSearchResult does not have MetaData

February 7, 2019 - 2:08pm #3

Hello,

There are current no known issues related to the problem that you're reporting.

To investigate further, please provide:

  • Cloud database name
  • Vuforia developer portal account name
  • Target name where metadata is not being returned

Thanks,

Vuforia Engine Support

TargetFinder.TargetSearchResult does not have MetaData

February 7, 2019 - 8:27am #2

I got the solution the have subclassed TargetFinder.TargetSearchResult to TargetFinder.CloudRecoSearchResult  and TargetFinder.ModelRecoSearchResult.  We can get the MetaData from TargetFinder.CloudRecoSearchResult now.

TargetFinder.CloudRecoSearchResult cloudRecoSearchResult = (TargetFinder.CloudRecoSearchResult)targetSearchResult;


cloudRecoSearchResult.MetaData;

Log in or register to post comments