-1

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

face_recognizer = cv2.face.createLBPHFaceRecognizer()

Anjali
  • 1
  • please take the [tour] and review [ask] – Christoph Rackwitz Nov 17 '22 at 21:29
  • 2
    Does this answer your question? [AttributeError: module 'cv2.cv2' has no attribute 'createLBPHFaceRecognizer'](https://stackoverflow.com/questions/44633378/attributeerror-module-cv2-cv2-has-no-attribute-createlbphfacerecognizer) – Luke B Nov 17 '22 at 22:11

1 Answers1

1

As stated in this answer, you have to install opencv-contrib-python

pip install opencv-contrib-python
Luke B
  • 1,143
  • 1
  • 11
  • 22