Ask Your Question

Revision history [back]

Add more options to the detection function. Try the following, which basically allows you to draw all hits, even if no overlaps occur. If nothing happens, then please add an example picture. It can be that your dataset is not corresponding to the used training situations for the model itself.

cascadeClassifier.detectMultiScale(resim, rect);
--> CHANGE THIS LINE INTO
cascadeClassifier.detectMultiScale(resim, rect, 1.05, 0);