我正在使用 ubuntu 12.04,并且我已经安装了 opencv 2.4(实际上,我安装了 ROS,opencv 随它一起安装)我正在尝试运行这个演示,但我收到了这个错误:
usama@ubuntu:~/Desktop/opencv/Advanced/Face Recognition$ g++ `pkg-config opencv --cflags` face_recog.cpp -o face_recog `pkg-config opencv --libs`
face_recog.cpp: In function ‘int main(int, const char**)’:
face_recog.cpp:119:30: error: ‘class cv::FaceRecognizer’ has no member named ‘getMat’
face_recog.cpp:121:20: error: ‘class cv::FaceRecognizer’ has no member named ‘getMat’
facerecog.cpp:123:23: error: ‘class cv::FaceRecognizer’ has no member named ‘getMat’
任何想法,我怎样才能摆脱这个错误?我应该将opencv升级到新版本吗?