编译官网的face_recognition例子时报错

刚刚上手ros,想试一试用opencv做人脸识别,于是按照官网的教程试了试,但是执行catkin_make的时候出现如下错误:
make[1]: *** 正在等待未完成的任务....
In file included from /home/feng/catkin_ws/src/face_recognition/src/face_recognition.cpp:42:0:
/home/feng/catkin_ws/src/face_recognition/src/face_recognition_lib.cpp: In member function ‘void FaceRecognitionLib::storeEigenfaceImages()’:
/home/feng/catkin_ws/src/face_recognition/src/face_recognition_lib.cpp:339:31: error: ‘cvCopyImage’ was not declared in this scope
    cvCopyImage(byteImg, bigImg);
                               ^
/home/feng/catkin_ws/src/face_recognition/src/face_recognition_lib.cpp: In member function ‘bool FaceRecognitionLib::learn(const char*)’:
/home/feng/catkin_ws/src/face_recognition/src/face_recognition_lib.cpp:381:45: error: ‘cvEigenDecomposite’ was not declared in this scope
    projectedTrainFaceMat->data.fl + i*offset);
                                             ^
/home/feng/catkin_ws/src/face_recognition/src/face_recognition_lib.cpp: In member function ‘void FaceRecognitionLib::doPCA()’:
/home/feng/catkin_ws/src/face_recognition/src/face_recognition_lib.cpp:559:3: error: ‘CV_EIGOBJ_NO_CALLBACK’ was not declared in this scope
   CV_EIGOBJ_NO_CALLBACK,
   ^
/home/feng/catkin_ws/src/face_recognition/src/face_recognition_lib.cpp:564:23: error: ‘cvCalcEigenObjects’ was not declared in this scope
   eigenValMat->data.fl);
.........




求大神指点这是什么原因。我用的ros版本是kinetic
游客
登录后才可以回帖,登录 或者 注册