Log in or register to post comments

Image tracking only works for one image

September 27, 2013 - 2:37pm #1

Hello,

I am using the cloud recognition service to upload models at runtime with unity Pro and Asset Bundles. The loading is working well, the only issue I have is that after the first image is recongized and loaded. The scanner does not reset. I am able to switch scenes in unity, essentially resetting the scanner and then scan a new image but not directly one after another. I have built my code from the cloud recognition example. Is there somewhere I should be resetting the scanner after the imageTracked is lost?

Any help will be greatly appreciated.

Thanks!

Image tracking only works for one image

November 4, 2013 - 3:10am #6

Cheers, thanks for sharing!

 

N

Image tracking only works for one image

November 3, 2013 - 12:50pm #5

Just in case someone else comes across this post, I have figured out how to do this. You will need to set the 

      mCloudRecoBehaviour.CloudRecoEnabled = true;

Found in the CloudRecoBehaviour, without setting it to true, after tracking lost, the camera will only scan for the last image scanned, instead of looking for a new image from the cloud. 
 
Hope this helps someone out.

 

Image tracking only works for one image

October 1, 2013 - 3:53am #4

Given that it's your code, I have no idea.

Try debugging the sample in play mode and see where yours is different - much easier than doing it on a device.

N

Image tracking only works for one image

September 30, 2013 - 10:13am #3

Hi again, 

I have looked carefully through my code and the only thing I can find that may be causing the issue is my OnStateChange(bool scanning) is not being triggered when i lose tracking on an image. Any suggestions on why this function is not being called and could this by why my scanning does not resume?

 

-Ethiopia

Image tracking only works for one image

September 30, 2013 - 5:35am #2

I have built my code from the cloud recognition example

Well, the CR sample works, so my thinking would be that you need to debug your code to find out where it is different, and what you are missing.  Although time consuming, this will be a great learning exercise.

 

N

 

Log in or register to post comments