Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

identifier "FaceRecognizer" is undefined OpenCV 3.0.0

I need to use the following code via OpenCV 3.0.0 but I can't be accepted by compiler and this error appears,but when I use opencv 2.4 it doesn't appear and it can be detected. I don't know which header I should include that I didn't! here is an abstract of my code (via opencv 3.0.0):

    #include "opencv2/core.hpp"
    #include "stdafx.h"
    #include "opencv2\imgproc\imgproc.hpp"
    #include <iostream>
    #include <fstream>
    #include <opencv2\calib3d\calib3d.hpp>
    #include "opencv2\core\core.hpp"
    #include "opencv2\highgui\highgui.hpp"
    #include "opencv2\objdetect\objdetect.hpp"
    #include "opencv2\opencv.hpp"

    using namespace cv;
    using namespace std;

Ptr<FaceRecognizer> model = createFisherFaceRecognizer(); //it doesn't detect FaceRecognizer

    model->train(images, labels);

identifier "FaceRecognizer" is undefined OpenCV 3.0.0

Hi Friends

I need to use the following code via OpenCV 3.0.0 but I can't be accepted by compiler and this error appears,but

when I use opencv 2.4 it doesn't appear and it can be detected. detected.

I don't know which header I should include that I didn't! didn't!

here is an abstract of my code (via opencv 3.0.0):

    #include "opencv2/core.hpp"
    #include "stdafx.h"
    #include "opencv2\imgproc\imgproc.hpp"
    #include <iostream>
    #include <fstream>
    #include <opencv2\calib3d\calib3d.hpp>
    #include "opencv2\core\core.hpp"
    #include "opencv2\highgui\highgui.hpp"
    #include "opencv2\objdetect\objdetect.hpp"
    #include "opencv2\opencv.hpp"

    using namespace cv;
    using namespace std;

Ptr<FaceRecognizer> model = createFisherFaceRecognizer(); //it doesn't detect FaceRecognizer

    model->train(images, labels);

identifier "FaceRecognizer" is undefined OpenCV 3.0.0

Hi Friends

I need to use the following code via OpenCV 3.0.0 but I can't be accepted by compiler and this error appears,but

when I use opencv 2.4 it doesn't appear and it can be detected.

I don't know which header I should include that I didn't!

here is an abstract of my code (via opencv 3.0.0):

    #include "opencv2/core.hpp"
    #include "stdafx.h"
    #include "opencv2\imgproc\imgproc.hpp"
    #include <iostream>
    #include <fstream>
    #include <opencv2\calib3d\calib3d.hpp>
    #include "opencv2\core\core.hpp"
    #include "opencv2\highgui\highgui.hpp"
    #include "opencv2\objdetect\objdetect.hpp"
    #include "opencv2\opencv.hpp"

    using namespace cv;
    using namespace std;

Ptr<FaceRecognizer> main()

{ ... Ptr<facerecognizer> model = createFisherFaceRecognizer(); //it doesn't detect FaceRecognizer FaceRecognizer

    model->train(images, labels);

... }

identifier "FaceRecognizer" is undefined OpenCV 3.0.0

Hi Friends

I need to use the following code via OpenCV 3.0.0 but I can't be accepted by compiler and this error appears,but

when I use opencv 2.4 it doesn't appear and it can be detected.

I don't know which header I should include that I didn't!

here is an abstract of my code (via opencv 3.0.0):

  #include "opencv2/core.hpp"
     #include "stdafx.h"
     #include "opencv2\imgproc\imgproc.hpp"
     #include <iostream>
     #include <fstream>
     #include <opencv2\calib3d\calib3d.hpp>
     #include "opencv2\core\core.hpp"
     #include "opencv2\highgui\highgui.hpp"
     #include "opencv2\objdetect\objdetect.hpp"
     #include "opencv2\opencv.hpp"

     using namespace cv;
     using namespace std;
 main()

{ ... Ptr<facerecognizer> Ptr<FaceRecognizer> model = createFisherFaceRecognizer(); //it doesn't detect FaceRecognizer

FaceRecognizer

    model->train(images, labels);
      ...
}

... }

identifier "FaceRecognizer" is undefined OpenCV 3.0.0

Hi Friends

I need to use the following code via OpenCV 3.0.0 but I can't be it's not accepted by compiler and this error appears,but

appears,

In fact, when I use opencv OpenCV 2.4 it doesn't appear and it can be detected.

I don't know which header I should include that I didn't!

here is an abstract of my code (via opencv 3.0.0):

      #include "opencv2/core.hpp"
        #include "stdafx.h"
        #include "opencv2\imgproc\imgproc.hpp"
        #include <iostream>
        #include <fstream>
        #include <opencv2\calib3d\calib3d.hpp>
        #include "opencv2\core\core.hpp"
        #include "opencv2\highgui\highgui.hpp"
        #include "opencv2\objdetect\objdetect.hpp"
        #include "opencv2\opencv.hpp"

        using namespace cv;
        using namespace std;
    main()
{
      ...
    Ptr<FaceRecognizer> model = createFisherFaceRecognizer(); //it doesn't detect FaceRecognizer

    model->train(images, labels);
      ...
}