MATLAB: How can i set the min and max size object to detect in matlab

cascade object detectorComputer Vision Toolbox

How can i set the min and max size object to detect in matlab? i am working on cascade object detector.
Thank you

Best Answer

The vision.CascadeObjectDetector object has properties MinSize and MaxSize. You can also pass 'MinSize' and 'MaxSize' name-value pairs into the object's constructor:
detector = vision.CascadeObjectDetector('MinSize', [32, 32]);