Opencv 3.0.0 python face recognizer has no attribute getMat

asked 2015-10-11 14:04:15 -0600

Hi, I am trying to run an Adafruit face recognition tutorial on my raspberry PI using Python and opencv3.0.0

The training program crashes with an error: mean = model.getMat("mean").reshape(faces[0].shape) AttributeError: 'cv2.face_BasicFaceRecognizer' object has no attribute 'getMat' where model is model = cv2.face.createEigenFaceRecognizer()

I have searched through some posts and found a similar post where the answer was to edit a .h file and rebuild due to a bug in the python binding. This appears to have been fixed in opencv 3.0.0 as my .h file has the edit.

I would be grateful if someone could tell me what the solution is or where to look, opencv is a fantastic package but as a newcomer I struggle to find my way around.

thanks

edit retag flag offensive close merge delete

Comments

help yourself ;)

>>> help(cv2.face)

>>> help(cv2.face.createEigenFaceRecognizer())

berak gravatar imageberak ( 2015-10-12 00:41:56 -0600 )edit