Is there a way to get a measurement of confidence level when using haar face detection using OpenCV?

后端 未结 4 1649
情歌与酒
情歌与酒 2021-01-12 04:10

I developed an application for face detection using OpenCVs HAAR cascade face detection. The algorithm works fine, however every once in a while It finds patterns on the wal

4条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-12 04:42

    Not a direct answer to your question, but this may help in reducing false detection.

    You can get less false detection by tweaking MinNeibhbours, CV_HAAR_FIND_BIGGEST_OBJECT, and Size values.

    int MinNeighbours = 7;

    face_cascade.detectMultiScale( frame_gray, faces, 1.1, MinNeighbours, CV_HAAR_FIND_BIGGEST_OBJECT, Size(60, 60) );

提交回复
热议问题