Start a new topic
Solved

Tracker Efficiency Mode

Why does this document say the way to set it is a number:

https://www.wikitude.com/external/doc/documentation/latest/Reference/JavaScript%20API/classes/ObjectTracker.html


But here it says it's a string:

https://www.wikitude.com/external/doc/documentation/latest/Reference/JavaScript%20API/classes/CONST.html


Which one is it? How do I call it? Do the docs need updating?


Is this how I set this?

this.tracker = new AR.ObjectTracker(this.targetCollectionResource, {
                onError: this.onError,
                trackerEfficiencyMode: AR.CONST.TRACKER_EFFICIENCY_MODE.HIGH_ACCURACY
});

 

Hi Eric,


Yes correct, you're using the efficieny mode, via the TRACKER_EFFICIENCY_MODE constant.


Greetings

Nicola


Thank you for the reply.


I would suggest you change the type written here for this property from "Number" to "String":


https://www.wikitude.com/external/doc/documentation/latest/Reference/JavaScript%20API/classes/ObjectTracker.html?_ga=2.67256150.613968506.1553545083-1281552377.1552317068


The fact it said it took a Number as its value was what confused me.

Login or Signup to post a comment