Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

how can provide legacy support for face recognition

Hello, Actually, i have using opencv 3.1 version. When i have tried to compile application by using command like as "g++ -std=c++11 OnlineFaceRec.cpp -I/usr/include/opencv -I/usr/include/opencv2 -L/usr/lib -o facerecognition pkg-config --cflags --libs opencv", i got some errors as below:

OnlineFaceRec.cpp:221:31: error: 'cvCopyImage' was not declared in this scope cvCopyImage(byteImg, bigImg); ^ OnlineFaceRec.cpp: In function 'void learn(const char*)': OnlineFaceRec.cpp:265:45: error: 'cvEigenDecomposite' was not declared in this scope } ^ OnlineFaceRec.cpp: In function 'void doPCA()': OnlineFaceRec.cpp:443:3: error: 'CV_EIGOBJ_NO_CALLBACK' was not declared in this scope

^~~
OnlineFaceRec.cpp:448:23: error: 'cvCalcEigenObjects' was not declared in this scope

                   ^

OnlineFaceRec.cpp: In function 'void recognizeFileList(const char*)': OnlineFaceRec.cpp:563:21: error: 'cvEigenDecomposite' was not declared in this scope

                 ^

OnlineFaceRec.cpp: In function 'void recognizeFromCam()': OnlineFaceRec.cpp:846:23: error: 'FALSE' was not declared in this scope

                   ^~~~

OnlineFaceRec.cpp:939:22: error: 'TRUE' was not declared in this scope } ^
OnlineFaceRec.cpp:1015:23: error: 'cvEigenDecomposite' was not declared in this scope

Now, i have make some changes and reduce errors as below:

I have replaced "cvCopyImage" by "cvCopy" Also replaced "TRUE" by "true" and "FALSE" by "false".

Still i have remaining errors as below:

OnlineFaceRec.cpp:265:45: error: 'cvEigenDecomposite' was not declared in this scope } ^ OnlineFaceRec.cpp: In function 'void doPCA()': OnlineFaceRec.cpp:443:3: error: 'CV_EIGOBJ_NO_CALLBACK' was not declared in this scope

^~~
OnlineFaceRec.cpp:448:23: error: 'cvCalcEigenObjects' was not declared in this scope

                   ^

OnlineFaceRec.cpp: In function 'void recognizeFileList(const char*)': OnlineFaceRec.cpp:563:21: error: 'cvEigenDecomposite' was not declared in this scope

                 ^

OnlineFaceRec.cpp: In function 'void recognizeFromCam()': OnlineFaceRec.cpp:1015:23: error: 'cvEigenDecomposite' was not declared in this scope

Please, provide me some steps to solve this errors. Note that i have using opencv 3.1 version.

Thanks and Regards, Kishan Patel.