tracking.js icon indicating copy to clipboard operation
tracking.js copied to clipboard

limit object tracking object size

Open BhavitChhatralia opened this issue 5 years ago • 1 comments

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 avatar Mar 25 '19 15:03 BhavitChhatralia

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.

BhavitChhatralia avatar Mar 25 '19 16:03 BhavitChhatralia