# Revision history [back]

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

 2 No.2 Revision StevenPuttemans 20029 ●16 ●82 ●207 http://stevenputtemans...

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.