opencv-face-recognition-python icon indicating copy to clipboard operation
opencv-face-recognition-python copied to clipboard

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

Open anu119 opened this issue 4 years ago • 2 comments

anu119 avatar Apr 16 '20 09:04 anu119

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

It worked for me.

Sudhanshu-Dubey14 avatar May 19 '20 21:05 Sudhanshu-Dubey14

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

SnehalChodankar avatar Jul 09 '20 06:07 SnehalChodankar