Ask Your Question

Revision history [back]

Loading Model for FisherFaceRecognizer

Hi there,

I'm trying to load model files for a FisherFaceRecognizer. The initial problem is that the program was written for an older OpenCV version and it seems some interfaces were changed.

Info about my project:

  • programming language: Python 3.5
  • OpenCV Version: 3.3.0

These are the two lines were I had a problem with:

      model = cv2.face.createFisherFaceRecognizer()
      model.load('foo_model.xml')

In the OpenCV documentation I found out that there is a new way to call the create functions and it seems to work. But I could not find the right call for the load function. I have tried to use the read function of the recognizer, but that results in an error.

        model = cv2.face.FisherFaceRecognizer_create()
        model.read('foo_model.xml')

Does somebody can help me with loading the model files? Thank you :)