what to do when you get errormodel = cv2.face.LBPHFaceRecognizer_create() AttributeError: module 'cv2.cv2' has no attribute 'face'

asked 2019-12-02 23:15:02 -0500

pradyunbhaskar gravatar image

image description

i am a student of 10th class and am trying to make my own face recognition system but i am getting this error

Traceback (most recent call last): File "C:/Users/prady/PycharmProjects/HelloWorld/app.py", line 19, in <module> model = cv2.face.LBPHFaceRecognizer_create() AttributeError: module 'cv2.cv2' has no attribute 'face'

Process finished with exit code 1

i have tried everything like 1. pip uninstall opencv-contrib-python 2. pip install opencv-contrib-python

and i have even tried to uninstall and re install everything, still i have this error

edit retag flag offensive close merge delete

Comments

1

Which python version 2 or 3?

supra56 gravatar imagesupra56 ( 2019-12-03 05:18:11 -0500 )edit