TypeError: Incorrect type of self(must be 'face_faceRecognizer' or its derivative
Hi, I am trying to execute face recognition code(opencv 3.4 and python2.7), i get the following error : TypeError: Incorrect type of self(must be 'face_faceRecognizer' or its derivative.
the code and defect attached
recognizer = cv2.face_LBPHFaceRecognizer()
if os.path.exists("model.yaml"): recognizer.read("model.yaml")
Can you please help me fix this.
please, no screenshots of TEXT ...