c++ - Compilation errors with OpenCV GOLD -


i'm on ubuntu 14.04 , using opencv 3 gold. have found example here eye detection: https://github.com/trishume/eyelike

when compiling on raspberry pi, got lot of errors:

/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 '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 argument 1 'iplimage* {aka _iplimage}' '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 argument 1 'iplimage {aka _iplimage}' '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 argument 1 'iplimage {aka _iplimage}' 'const scalar& {aka const cv::scalar_<double>&}' src/cmakefiles/eyelike.dir/build.make:54: recipe target 'src/cmakefiles/eyelike.dir/main.cpp.o' failed make[2]: * [src/cmakefiles/eyelike.dir/main.cpp.o] error 1 cmakefiles/makefile2:75: recipe target 'src/cmakefiles/eyelike.dir/all' failed make[1]: [src/cmakefiles/eyelike.dir/all] error 2 makefile:72: recipe target 'all' failed make: * [all] error 2` 

i have tested program opencv 2.4.10 , worked well.


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -