Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Perf Guidelines #96
I'm trying to use tracking.js with getUserMedia and a face object tracker and am experiencing unusable framerates.
The source video is 640x480, and I'm using the following tracker options:
tracker.setInitialScale(4) tracker.setStepSize(2) tracker.setEdgesDensity(0.1)
My question is: can any of the tracker options be used to affect perf vs accuracy, or is the largest factor affecting perf the size of the source video?
Those options can improve performance, specially the step size and initial scale. ViolaJones is a good object detection algorithm, although for large images 640x480 it can reach low frame rates.
Two features from our roadmap that will speed up performance for cases like that:
A workaround for now is to write the 640x480 video into a smaller hidden canvas, and this canvas is the element being track, when