Mjrovai / OpenCV-Face-Recognition

Real-time face recognition project with OpenCV and Python
1.18k stars 1.02k forks source link

Traceback Error #15

Closed Suave101 closed 5 months ago

Suave101 commented 4 years ago

Traceback (most recent call last): File "C:... /OpenCV-Face-Recognition-master/FacialRecognition/02_face_training.py", line 21, in recognizer = cv2.face.LBPHFaceRecognizer_create() AttributeError: module 'cv2.cv2' has no attribute 'face'

ShangYuChiang commented 4 years ago

You could try this recognizer=cv2.face.EigenFaceRecognizer_create()

Utkarsh1504 commented 3 years ago

firstly check all the installed packages if any package is missing then install them and if all packages are installed successfully then make sure that in C:\Python\Lib\site-packages\cv2 directory there is a file named cv2.cp37 type file with extension .pyd is present, if is not, then install it after installing in the same directory I hope your program 'MultiObjectTracker' will run successfully.