Log in or register to post comments

Previous Reco Triggered After Disabling and Enabling ARCamera

December 18, 2015 - 9:00am #1

hi,

    In a project when i stop tracking after detection of marker,by disabling ARCamera object and then renabling the ARCamera to start tracking, the last recognized event is triggered. Its related to a back funciton, switching on camera for detection. But what happens is it quickly shows camera and then instant detection of the previous one. 

I am i doing something wrong? is this the correct way to start/stop the vuforia?

Please help 

Previous Reco Triggered After Disabling and Enabling ARCamera

December 18, 2015 - 11:28pm #3

I am using Device DB.

I need to stop Camera or Vuforia since the rest of the app is normal non vuforia things.

i will test your logging. But i remember from my old project was that this issue was not occuring in editor but in ios build. I will reconfirm this also.

 

Previous Reco Triggered After Disabling and Enabling ARCamera

December 18, 2015 - 5:22pm #2

  • Are you using Device DB or Cloud DB?
  • Are you trying to stop the Tracker or the Camera?

Stopping and restarting the ARCamera is more expensive than calling Tracker.Stop().

To watch trackable status events on initialization (previous & new), place some logging into the OnTrackableStateChanged() method and watch the Unity console:

// if target found

Debug.Log("<color=green>prev=" + previousStatus.ToString() + "</color>");
Debug.Log("<color=green>new=" + newStatus.ToString() + "</color>");

// if target lost

Debug.Log("<color=red>prev=" + previousStatus.ToString() + "</color>");
Debug.Log("<color=red>new=" + newStatus.ToString() + "</color>");

 

Log in or register to post comments