Ошибки компиляции с OpenCV GOLD

Я на Ubuntu 14.04 и использую OpenCV 3 Gold. Я нашел здесь пример для обнаружения глаз: https://github.com/trishume/eyeLike

При компиляции на Raspberry Pi я получил много ошибок:

/home/pi/opencv-3.0.0/samples/cpp/test/eyeLike-master/src/main.cpp: In function 'int main(int, const char)':
/home/pi/opencv-3.0.0/samples/cpp/test/eyeLike-master/src/main.cpp:82:37: error: no match for 'operator=' in 'frame = cvQueryFrame(capture)'
/home/pi/opencv-3.0.0/samples/cpp/test/eyeLike-master/src/main.cpp:82:37: note: candidates are:
/usr/local/include/opencv2/core/mat.inl.hpp:560:6: note: cv::Mat& cv::Mat::operator=(const cv::Mat&)
/usr/local/include/opencv2/core/mat.inl.hpp:560:6: note: no known conversion for argument 1 from 'IplImage* {aka _IplImage}' to 'const cv::Mat&'
/usr/local/include/opencv2/core/mat.inl.hpp:2878:6: note: cv::Mat& cv::Mat::operator=(const cv::MatExpr&)
/usr/local/include/opencv2/core/mat.inl.hpp:2878:6: note: no known conversion for argument 1 from 'IplImage {aka _IplImage}' to 'const cv::MatExpr&'
/usr/local/include/opencv2/core/mat.hpp:1102:10: note: cv::Mat& cv::Mat::operator=(const Scalar&)
/usr/local/include/opencv2/core/mat.hpp:1102:10: note: no known conversion for argument 1 from 'IplImage {aka _IplImage}' to 'const Scalar& {aka const cv::Scalar_<double>&}'
src/CMakeFiles/eyeLike.dir/build.make:54: recipe for target 'src/CMakeFiles/eyeLike.dir/main.cpp.o' failed
make[2]: * [src/CMakeFiles/eyeLike.dir/main.cpp.o] Error 1
CMakeFiles/Makefile2:75: recipe for target 'src/CMakeFiles/eyeLike.dir/all' failed
make[1]: [src/CMakeFiles/eyeLike.dir/all] Error 2
Makefile:72: recipe for target 'all' failed
make: * [all] Error 2`

Я протестировал программу с OpenCV 2.4.10, и она работала очень хорошо.

1

Решение

Задача ещё не решена.

Другие решения


По вопросам рекламы [email protected]