eduardolundgren / tracking.js

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

limit object tracking object size #361

Open BhavitChhatralia opened 5 years ago

BhavitChhatralia commented 5 years ago

is it possible to set a size limit on the objects found via object tracking for the object being found in the haar cascade?

e.g. OpenCV allows for minimum and maximum size of a object as parameters, is this possible to be implemented into the object tracking for tracking.js?

BhavitChhatralia commented 5 years ago

Have put a round about solution:

event.data.forEach(function(rect) {
                    if(rect.width >= 50 || rect.height >= 50){

                    }
                    else{

but i want to implement a set max object size limit on into the tracking.js code however, i'm not too sure how to go about doing so as there's no indicaiton of size limiting in the violajones function at all.