informramiz / opencv-face-recognition-python

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

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

Open anu119 opened 4 years ago

Sudhanshu-Dubey14 commented 4 years ago

Try the answer from here https://stackoverflow.com/questions/44633378/attributeerror-module-cv2-cv2-has-no-attribute-createlbphfacerecognizer

It worked for me.

SnehalChodankar commented 4 years ago

you need to install opencv-contrib-python instead of normal opencv-python library.

Run the command pip install opencv-contrib-python

if error persists then uninstall the opencv-python library with following command pip uninstall opencv-python