informramiz / opencv-face-recognition-python

Face Recognition using OpenCV and Python.
MIT License
514 stars 351 forks source link

Error no attribute 'face' #31

Open SidmoGoesBrrr opened 3 years ago

SidmoGoesBrrr commented 3 years ago
face_recognizer = cv2.face.LBPHFaceRecognizer_create()

AttributeError: module 'cv2.cv2' has no attribute 'face'

Arcires commented 3 years ago

I've had a similar issue. What version of OpenCV are you using?

I switched from the standard OpenCV-Python package to OpenCV-Contrib Python. It fixed my problem regarding the lack of a 'face' attribute.