Ask Your Question

Pain's profile - activity

2019-07-30 02:43:18 -0600 received badge  Enthusiast
2019-07-29 23:35:53 -0600 commented answer How to calculate face recognition rate and choose threshold when using LBPHFaceRecognizer in OpenCV

Thank you for your anwer

2019-07-28 21:41:26 -0600 commented answer How to calculate face recognition rate and choose threshold when using LBPHFaceRecognizer in OpenCV

Is there any case where the confidence distance <0?

2019-07-28 21:40:45 -0600 commented answer How to calculate face recognition rate and choose threshold when using LBPHFaceRecognizer in OpenCV

Is there any case where the confidence distance <0?

2019-07-28 21:00:43 -0600 received badge  Supporter (source)
2019-07-28 21:00:41 -0600 commented answer How to calculate face recognition rate and choose threshold when using LBPHFaceRecognizer in OpenCV

Thank you. This is all I need

2019-07-28 20:58:51 -0600 marked best answer 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

2019-07-28 20:58:51 -0600 received badge  Scholar (source)
2019-07-26 04:08:42 -0600 edited question How to calculate face recognition rate and choose threshold when using LBPHFaceRecognizer in OpenCV

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

2019-07-26 04:08:40 -0600 edited question How to calculate face recognition rate and choose threshold when using LBPHFaceRecognizer in OpenCV

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

2019-07-26 04:08:40 -0600 received badge  Editor (source)
2019-07-26 03:34:37 -0600 asked a question How to calculate face recognition rate and choose threshold when using LBPHFaceRecognizer in OpenCV

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

2016-09-09 06:27:02 -0600 commented question I want to detect closed eyes after it closed 3 seconds

Thanks you! How to you know if eyes closed in 3 seconds

2016-09-09 06:15:35 -0600 commented question I want to detect closed eyes after it closed 3 seconds

I think "eyes = eyesCascade.detectMultiScale(roi_gray)" will detect eyes area And " twoeyes = twoeyesCascade.detectMultiScale(roi_gray)" will detect two eyes. When I see eyes area but don't see two eyes that's when detect closed eyes.

2016-09-09 05:58:14 -0600 commented question I want to detect closed eyes after it closed 3 seconds

You can suggest a few alternatives feasible.

2016-09-09 04:47:33 -0600 asked a question I want to detect closed eyes after it closed 3 seconds

This is a program to detect eyes closed. But i want after eyes closed 3 seconds, it will print "Warning" in terminal.

      for (x, y, w, h) in faces:
            cv2.rectangle(image, (x, y), (x + w, y + h), (255, 255, 0), 2)

            roi_gray = gray[y:y+h, x:x+w]
            roi_color = image[y:y+h, x:x+w]
            eyes = eyesCascade.detectMultiScale(roi_gray)
            if eyes is not():
                for (ex,ey,ew,eh) in eyes:
                    cv2.rectangle(roi_color,(ex -10 ,ey - 10),(ex+ew + 10,ey+eh + 10),(0,255,0),2)
                    twoeyes = twoeyesCascade.detectMultiScale(roi_gray)
                    checkyeys = 0
                    if twoeyes is not():
                        for (exx,eyy,eww,ehh) in twoeyes:
                            checkyeys = 0
                            led.write(1)
                            cv2.rectangle(roi_color,(exx-5 ,eyy -5  ),(exx+eww -5,eyy+ehh -5 ),(0,0, 255),2)
                    else:
                        #when eyes close
                        print "------------------------------------"