Type error:: descriptor 'read' requires a 'cv2.face_FaceRecogniser' object but Recieved a str

asked 2018-07-22 06:57:07 -0500

Shunya gravatar image

updated 2018-07-22 06:57:27 -0500

I'm using Python 2.7.15(Anaconda). As per OpenCV documentation The syntax is None = cv.face_FaceRecognizer.read( filename)

But The one in the program is written as

cv2.face_EigenFaceRecognizer.read("Recogniser/trainingDataEigan.xml")

(loading the xml file after training)

But I get a Type error when I try to run the program.How can I resolve the issue ?

Thanks. `

edit retag flag offensive close merge delete

Comments

If I type in cv.face_EigenFaceRecognizer.read("Recogniser/trainingDataEigan.xml")

I get the error module cv not found.

Shunya gravatar imageShunya ( 2018-07-22 07:58:13 -0500 )edit