eduardolundgren / tracking.js

A modern approach for Computer Vision on the web
http://trackingjs.com
Other
9.43k stars 1.44k forks source link

Trackers do not fire when tab is not in focus #335

Open dok opened 5 years ago

dok commented 5 years ago

Is this an intended feature of tracking.js?

dok commented 5 years ago

It seems there is already some commenting around it. https://github.com/eduardolundgren/tracking.js/blob/master/src/tracking.js#L244

Would you be interested in a PR if I write a function that handles the detection function? It would look something along the lines of

// Options can be passed into the tracker
var tracker = new tracking.ObjectTracker('face', {
  frequency: 100 // in ms
});
EddieOne commented 5 years ago

I have strange behavior only fires when tab is not selected