Ask Your Question

windy54's profile - activity

2015-10-12 00:22:39 -0600 asked a question Opencv 3.0.0 python face recognizer has no attribute getMat

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