opencv-face-recognition-python icon indicating copy to clipboard operation
opencv-face-recognition-python copied to clipboard

Error no attribute 'face'

Open SidmoGoesBrrr opened this issue 3 years ago • 1 comments

face_recognizer = cv2.face.LBPHFaceRecognizer_create()

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

SidmoGoesBrrr avatar Apr 04 '21 10:04 SidmoGoesBrrr

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.

Arcires avatar Jun 27 '21 18:06 Arcires