Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Hi,I am getting this error Program1.cpp|| undefined reference to `cv::face::FaceRecognizer::predict(cv::_InputArray const&) const'|

here is my code snippet

include <opencv2 core="" core.hpp="">

include "opencv2/core.hpp"

include <opencv2 highgui="" highgui.hpp="">

include <opencv2 opencv.hpp="">

include "opencv2/imgcodecs.hpp"

include "opencv2/imgproc.hpp"

include "opencv2/objdetect.hpp"

include "opencv2/face/facerec.hpp"

include "opencv2/face.hpp"

include<bits stdc++.h="">

using namespace cv; using namespace std; using namespace cv::face;

/*declaration of global variables */

int image_flag=1;//flag for depicting success/failure of reading a image CascadeClassifier face_cascade; CascadeClassifier eyes_cascade; String face_cascade_name, eyes_cascade_name; vector<int> labels; Ptr<face::facerecognizer> model = face::createFisherFaceRecognizer();

thanks in advance!

click to hide/show revision 2
No.2 Revision

updated 2017-03-24 14:22:07 -0600

berak gravatar image

Hi,I am getting this error Program1.cpp|| undefined reference to `cv::face::FaceRecognizer::predict(cv::_InputArray const&) const'|

here is my code snippet

include <opencv2 core="" core.hpp="">

#include <opencv2/core/core.hpp>
#include "opencv2/core.hpp"
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/opencv.hpp>
#include "opencv2/imgcodecs.hpp"
#include "opencv2/imgproc.hpp"
#include "opencv2/objdetect.hpp"
#include "opencv2/face/facerec.hpp"
#include "opencv2/face.hpp"
#include<bits/stdc++.h>
  

include "opencv2/core.hpp"

include <opencv2 highgui="" highgui.hpp="">

include <opencv2 opencv.hpp="">

include "opencv2/imgcodecs.hpp"

include "opencv2/imgproc.hpp"

include "opencv2/objdetect.hpp"

include "opencv2/face/facerec.hpp"

include "opencv2/face.hpp"

include<bits stdc++.h="">

using namespace cv; using namespace std; using namespace cv::face;

cv::face;

/*declaration of global variables */

*/

int image_flag=1;//flag for depicting success/failure of reading a image CascadeClassifier face_cascade; CascadeClassifier eyes_cascade; String face_cascade_name, eyes_cascade_name; vector<int> labels; Ptr<face::facerecognizer> Ptr<face::FaceRecognizer> model = face::createFisherFaceRecognizer();

face::createFisherFaceRecognizer();

thanks in advance!