Open sriram317 opened 4 years ago
File ".../attendance.py", line 183, in TrackImages recognizer = cv2.face.LBPHFaceRecognizer_create()#cv2.createLBPHFaceRecognizer() AttributeError: module 'cv2.cv2' has no attribute 'face'
bro using pip command pip install opencv-contrib-python
it should work
Go to comment prompt and install this script then it will work perfectly
python -m pip install --user opencv-contrib-python
File ".../attendance.py", line 183, in TrackImages recognizer = cv2.face.LBPHFaceRecognizer_create()#cv2.createLBPHFaceRecognizer() AttributeError: module 'cv2.cv2' has no attribute 'face'