Open peterlunglum opened 6 years ago
If you are using an HTML5 video object, you can overwrite the framerate property of getUserMedia. By default, it is 30fps. I have it at 10fps so motion still looks ok but tracking.js doesn't fire off 30x a second, just 3.
getUserMedia({ audio: false, video: { facingMode: 'user', width: { ideal: 1280 }, height: { ideal: 720 }, frameRate: { ideal: 10, max: 10 } } })
Is there a way to slow or reduce the number of times 'tracker.on' track would listen and update the amount of data or objects being detected? When objects are relatively still, it will still update the data integer very quickly and I'd like to check for objects less frequently.