Ask Your Question
2

compiling error in face_recognition

asked 2017-04-09 13:48:44 -0500

dkr92 gravatar image

updated 2017-04-09 13:57:25 -0500

ahendrix gravatar image

I'm new to ROS and OpenCV. I am having trouble in making the face_recognition package work. I get the following error while running catkin_make after cloning the package. My guess is there is a problem with OpenCV integration but i dont know how to correct it. I aslo installed OpenCV latest stable version 3.2 and cv_bridge ROS package. Any help would be appreciated. Thanks in advance. :)

[ 92%] Building CXX object procrob_functional/CMakeFiles/Fserver.dir/src/face_recognition.cpp.o
[ 96%] Built target Fclient
/home/dkr92/catkin_ws/src/procrob_functional/src/face_recognition_lib.cpp: In member function ‘void FaceRecognitionLib::storeEigenfaceImages()’:
/home/dkr92/catkin_ws/src/procrob_functional/src/face_recognition_lib.cpp:333:31: error: ‘cvCopyImage’ was not declared in this scope
    cvCopyImage(byteImg, bigImg);
                               ^
/home/dkr92/catkin_ws/src/procrob_functional/src/face_recognition_lib.cpp: In member function ‘bool FaceRecognitionLib::learn(const char*)’:
/home/dkr92/catkin_ws/src/procrob_functional/src/face_recognition_lib.cpp:375:45: error: ‘cvEigenDecomposite’ was not declared in this scope
    projectedTrainFaceMat->data.fl + i*offset);
                                             ^
/home/dkr92/catkin_ws/src/procrob_functional/src/face_recognition_lib.cpp: In member function ‘void FaceRecognitionLib::doPCA()’:
/home/dkr92/catkin_ws/src/procrob_functional/src/face_recognition_lib.cpp:553:3: error: ‘CV_EIGOBJ_NO_CALLBACK’ was not declared in this scope
   CV_EIGOBJ_NO_CALLBACK,
   ^
/home/dkr92/catkin_ws/src/procrob_functional/src/face_recognition_lib.cpp:558:23: error: ‘cvCalcEigenObjects’ was not declared in this scope
   eigenValMat->data.fl);
                       ^
procrob_functional/CMakeFiles/face_recognition_lib.dir/build.make:62: recipe for target 'procrob_functional/CMakeFiles/face_recognition_lib.dir/src/face_recognition_lib.cpp.o' failed
make[2]: *** [procrob_functional/CMakeFiles/face_recognition_lib.dir/src/face_recognition_lib.cpp.o] Error 1
CMakeFiles/Makefile2:3397: recipe for target 'procrob_functional/CMakeFiles/face_recognition_lib.dir/all' failed
make[1]: *** [procrob_functional/CMakeFiles/face_recognition_lib.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
In file included from /home/dkr92/catkin_ws/src/procrob_functional/src/face_recognition.cpp:42:0:
/home/dkr92/catkin_ws/src/procrob_functional/src/face_recognition_lib.cpp: In member function ‘void FaceRecognitionLib::storeEigenfaceImages()’:
/home/dkr92/catkin_ws/src/procrob_functional/src/face_recognition_lib.cpp:333:31: error: ‘cvCopyImage’ was not declared in this scope
    cvCopyImage(byteImg, bigImg);
                               ^
/home/dkr92/catkin_ws/src/procrob_functional/src/face_recognition_lib.cpp: In member function ‘bool FaceRecognitionLib::learn(const char*)’:
/home/dkr92/catkin_ws/src/procrob_functional/src/face_recognition_lib.cpp:375:45: error: ‘cvEigenDecomposite’ was not declared in this scope
    projectedTrainFaceMat->data.fl + i*offset);
                                             ^
/home/dkr92/catkin_ws/src/procrob_functional/src/face_recognition_lib.cpp: In member function ‘void FaceRecognitionLib::doPCA()’:
/home/dkr92/catkin_ws/src/procrob_functional/src/face_recognition_lib.cpp:553:3: error: ‘CV_EIGOBJ_NO_CALLBACK’ was not declared in this scope
   CV_EIGOBJ_NO_CALLBACK,
   ^
/home/dkr92/catkin_ws/src/procrob_functional/src/face_recognition_lib.cpp:558:23: error: ‘cvCalcEigenObjects’ was not declared in this scope
   eigenValMat->data.fl);
                       ^
/home/dkr92/catkin_ws/src/procrob_functional/src/face_recognition.cpp: In constructor ‘FaceRecognition::FaceRecognition(std::__cxx11::string)’:
/home/dkr92/catkin_ws/src/procrob_functional/src/face_recognition.cpp:413:35: warning: ‘FaceRecognition::it_’ will be initialized after [-Wreorder]
   image_transport::ImageTransport it_;
                                   ^
/home/dkr92/catkin_ws/src/procrob_functional/src/face_recognition.cpp:411:24: warning:   ‘ros::NodeHandle FaceRecognition::pnh_’ [-Wreorder]
   ros::NodeHandle nh_, pnh_;
                        ^
/home/dkr92/catkin_ws/src/procrob_functional/src/face_recognition.cpp:50:3: warning:   when initialized here [-Wreorder]
   FaceRecognition(std::string name) : 
   ^
/home/dkr92/catkin_ws/src/procrob_functional/src/face_recognition.cpp: In member function ‘void FaceRecognition ...
(more)
edit retag flag offensive close merge delete

Comments

Hi , did you fix this bug ? .Thank you for advance

amal gravatar image amal  ( 2018-05-31 11:15:56 -0500 )edit

1 Answer

Sort by » oldest newest most voted
0

answered 2018-06-19 18:24:14 -0500

I am still having the same error:

[ 95%] Building CXX object procrob_functional/CMakeFiles/Fserver.dir/src/face_recognition.cpp.o /home/nvidia/catkin_ws/src/procrob_functional/src/face_recognition_lib.cpp: In member function ‘void FaceRecognitionLib::storeEigenfaceImages()’: /home/nvidia/catkin_ws/src/procrob_functional/src/face_recognition_lib.cpp:333:31: error: ‘cvCopyImage’ was not declared in this scope cvCopyImage(byteImg, bigImg); ^ /home/nvidia/catkin_ws/src/procrob_functional/src/face_recognition_lib.cpp: In member function ‘bool FaceRecognitionLib::learn(const char)’: /home/nvidia/catkin_ws/src/procrob_functional/src/face_recognition_lib.cpp:375:45: error: ‘cvEigenDecomposite’ was not declared in this scope projectedTrainFaceMat->data.fl + ioffset);

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2017-04-09 13:48:44 -0500

Seen: 561 times

Last updated: Apr 09 '17