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

后端 未结 4 1652
情歌与酒
情歌与酒 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:54

    OpenCV provides the confidence via the argument "weights" in function "detectMultiScale" from class CascadeClassifier, you need to put the flag "outputRejectLevels" to true

提交回复
热议问题