Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

24x24 is the smallest rect, that can be detected (the training window of the cascade)

so, minSize=(1,1), is useless (to small) , and maxSize=(24,24)) will forbid to detect it.

also, you probably need some border around it in the detection image

24x24 is the smallest rect, that can be detected (the training window of the cascade)

so, minSize=(1,1), is useless (to small) , and maxSize=(24,24)) will forbid to detect it.

also, you probably need some border around it in the detection image

so maybe try this detections= my_cascade.detectMultiScale(img, scaleFactor=1.05, minNeighbors=1) first and then try to finetune.