Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to calculate face recognition rate and choose threshold when using LBPHFaceRecognizer in OpenCV

I am using OpenCV on python to identify faces. A quick tool to help me deploy it is OpenCV's LBPHFaceRecognizer. However, I am wondering about the following parameters. When I use

recognizer = cv2.face.LBPHFaceRecognizer_create()
recognizer.read('ckpt_face/trainer.yml')
id, confidence_face = recognizer.predict(face)

id will help me know who this face is among the trained faces. but confidence_face is not the corresponding face recognition rate. How do I know the face recognition rate? How much confidence_face do people choose in a range? Thank you everyone for your help

How to calculate face recognition rate and choose threshold when using LBPHFaceRecognizer in OpenCV

I am using OpenCV on python to identify faces. A quick tool to help me deploy it is OpenCV's LBPHFaceRecognizer. However, I am wondering about the following parameters. When I use

recognizer = cv2.face.LBPHFaceRecognizer_create()
recognizer.read('ckpt_face/trainer.yml')
id, confidence_face = recognizer.predict(face)

id will help me know who this face is among the trained faces. but confidence_face is not the corresponding face recognition rate. How do I know the face recognition rate? How much confidence_face do people choose in a range? Thank you everyone for your help

How to calculate face recognition rate and choose threshold when using LBPHFaceRecognizer in OpenCV

I am using OpenCV on python to identify faces. A quick tool to help me deploy it is OpenCV's LBPHFaceRecognizer. However, I am wondering about the following parameters. When I use

recognizer = cv2.face.LBPHFaceRecognizer_create()
recognizer.read('ckpt_face/trainer.yml')
id, confidence_face = recognizer.predict(face)

id will help me know who this face is among the trained faces. but confidence_face is not the corresponding face recognition rate. How do I know the face recognition rate? How much confidence_face do people you choose in a range? Thank you everyone for your help

How to calculate face recognition rate and choose threshold when using LBPHFaceRecognizer in OpenCV

I am using OpenCV on python to identify faces. A quick tool to help me deploy it is OpenCV's LBPHFaceRecognizer. However, I am wondering about the following parameters. When I use

recognizer = cv2.face.LBPHFaceRecognizer_create()
recognizer.read('ckpt_face/trainer.yml')
id, confidence_face = recognizer.predict(face)

id will help me know who this face is among the trained faces. but confidence_face is not the corresponding face recognition rate. How do I know the face recognition rate? How much confidence_face do you choose in a range? Thank you everyone for your help