Ask Your Question

Revision history [back]

Prevent detecting object inside object

Hello there!

I trained a model to detect a kiss inside a face, it's not finished yet. As most of us, when the kiss is found i draw a square/rectangle around it.

But i'm facing a problem, sometimes when it detects the kiss in the picture or even live webcam, it draws another square/tectangle around it, making it double on same site, like the same object is being recognized two times.

Is there a way to prevent that, without changing dectecMultiScale parameters? The problem is that i usually change minNeighbors to prevent this "same object double detection", raising it's value, but, when i do that, other pics that were being recognized before, won't be anymore.