Traceback Error
Suave101 opened this issue · 2 comments
Suave101 commented
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
You could try this
recognizer=cv2.face.EigenFaceRecognizer_create()
Utkarsh1504 commented
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.