Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

TypeError: Incorrect type of self(must be 'face_faceRecognizer' or its derivative)

Hello.I'm on an Opencv Contrib 3.4.1.15 . In the code,The recognizer is as per documentation
""EigenFace = cv2.face_EigenFaceRecognizer()"" which I had got from

help(cv2) #attribute(cv2)

but I'm getting an Error for

print('TRAINING......')

EigenFace.train(FaceList, IDs)

it says""" TypeError: Incorrect type of self(must be 'face_faceRecognizer' or its derivative)""" for the EigenFace.train() I googled a lot and was unable to find a solution. Can anyone help me please? I have Uninstalled opencv standard packages and reinstalled the Contrib packages.