Log in or register to post comments

TargetFinder Error Code

October 16, 2015 - 8:12am #1

Hi ,

 

We are looking for a situation like what value would vuforia return if the target not found in cloud.

Ex : If user trying to scan a target continuously which is not available in cloud .

Believe vuforia will return some value for this situation.

Finally i found the code like "TargetFinder.UpdateState" class which has the status like "UPDATE_NO_MATCH" .

I tried to handle "UPDATE_NO_MATCH" and tested it with the above said scenario (scan a target continuously which is not available in cloud )

after some point I was waiting for vuforia to throw this error(state), but no result . Ideally it should throw this error? 

Can you please explain me why vuforia is not handing (UPDATE_NO_MATCH) in TargetFinder.UpdateState ? (or) let me know how to handle this.

 

Waiting for your response.

Thanks,

 

TargetFinder Error Code

December 4, 2015 - 9:00pm #3

Additionally, you can use TargetFinder.IsRequesting() to see when a search query has been sent to the server. Vuforia 5 SDK also introduced ability to disable client from filtering out results for targets already being tracked. You can read more in this guide:

https://developer.vuforia.com/library/articles/Solution/Vuforia-5-Migration

 

TargetFinder Error Code

December 4, 2015 - 8:50pm #2

The TargetFinder.Update() method is already being called every frame by CloudRecoAbstractBehavior.cs script which is attached to the CloudRecognition prefab. When you make an explicit call to Update() it will be competing for the results and may often come up empty since they've already been taken. CloudRecoAbstractBehavior takes on the task of checking status and then calling the callback methods of the ICloudRecoEventHandler to alert you to new results. You can remove the CloudRecognition prefab and work directly with the TargetFinder APIs if you wish.

Log in or register to post comments