0

I have an implemented face detector of my own, but I faced a problem recently that OpenCV solves with the minNeighbors parameter for detectMultiScale() function: I have a lot of false positives. What OpenCV does is leaves only rectangles that have a certain amount of rectangles nearby. Faces usually have a lot of detections around them. This is an example.

Intuitively, I understand how it works, but I want to know what algorithm is used under the hood, so that I can implement it myself.

Thank you.

Community
  • 1
  • 1
warmspringwinds
  • 1,147
  • 2
  • 14
  • 31

1 Answers1

0

you can use the OpenCV implementation by calling the function groupRectangles() and pass your own list of rectangles.

http://docs.opencv.org/modules/objdetect/doc/cascade_classification.html#grouprectangles

Tal Darom
  • 1,379
  • 1
  • 8
  • 26