I am trying to implement face recognition code using Python 2.7
and OpenCV 3.4.1
, but I get an error when running the code:
face_recognizer = cv2.face.LBPHFaceRecognizer_create()
The error message:
AttributeError: 'module' object has no attribute 'face'
How can I resolve this?