0

AttributeError: module 'cv2.cv2' has no attribute 'createLBPHFaceRecognizer' I restarted my windows but still its not working

recognizer=cv2.face.createLBPHFaceRecognizer_create()
1

1 Answer 1

1

You have a typo in your code. The method is called LBPHFaceRecognizer_create, not createLBPHFaceRecognizer_create.

The following works for me (after installing opencv-contrib-python):

import cv2
recognizer = cv2.face.LBPHFaceRecognizer_create()
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.