Log in or register to post comments

How to turn off camera and stop recognition in vuforia 10 ?

January 22, 2022 - 8:49am #1

Hi~

I upgraded an old unity project from unity 2019.2.3/vuforia 8.3.8 to unity 2021.2.8/vuforia 10.3.2.

But the following syntax does not work.

ObjectTracker tracker = TrackerManager.Instance.GetTracker<ObjectTracker>();    

tracker.Stop(); 

CameraDevice.Instance.Stop(); 

How should I write it in vuforia 10 ?

thank you~

How to turn off camera and stop recognition in vuforia 10 ?

June 1, 2022 - 1:23pm #4

In my case, Im using Unity and I had problems with 

>VuforiaBehaviour.Instance.enabled = false / true;<

because i wanted to stop vuforia just when it recognize a target. (i have only one and dont want vuforia using the camera while all the runtime).

The solution was not doing that just in the callback  OnTargetFound (of a DefaultObserverEventHandler).

Instead of that, set up a bool and in the Update of Unity script check that bool in order to make  >VuforiaBehaviour.Instance.enabled = false / true;<

If your problem is related with turn Vuforia off because you want to use camera, maybe you have to first turn off with the code given, and in the next Update make use of the camera.

If you do both things in the same instant i think is not working because vuforia needs this time to stop.

 

How to turn off camera and stop recognition in vuforia 10 ?

March 24, 2022 - 11:04am #3

I have the same question. Thank for helpful post.

 

cupcake 2048

How to turn off camera and stop recognition in vuforia 10 ?

January 24, 2022 - 3:15am #2

Hey there,

 

I suggest trying: 

VuforiaBehaviour.Instance.enabled = false / true;

Also you should check out this article to learn more about the changes of the API: 

 

Kind regards,

Patrick Scheper

Technical Community Manager

Log in or register to post comments