opencv-face-recognition-python
opencv-face-recognition-python copied to clipboard
AttributeError: module 'cv2.cv2' has no attribute 'face'
Try the answer from here https://stackoverflow.com/questions/44633378/attributeerror-module-cv2-cv2-has-no-attribute-createlbphfacerecognizer
It worked for me.
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