identifier "FaceRecognizer" is undefined OpenCV 3.0.0
Hi Friends
I need to use the following code via OpenCV 3.0.0 but it's not accepted by compiler and this error appears,
In fact, 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> model = createFisherFaceRecognizer(); //it doesn't detect FaceRecognizer
model->train(images, labels);
...
}
thank you @berak but you know,instead I decided to use opencv 2.4 to not face this problem,but unfortunately imread() function doesn't work well..I mean it doesn't load the image via opencv 2.4.look at here please (this is my problem):
http://answers.opencv.org/question/73...