AttributeError: module 'cv2' has no attribute 'face'
face_recognizer = cv2.face.createLBPHFaceRecognizer()
AttributeError: module 'cv2' has no attribute 'face'
face_recognizer = cv2.face.createLBPHFaceRecognizer()
As stated in this answer, you have to install opencv-contrib-python
pip install opencv-contrib-python