Using opencv on raspberry pi

asked 2015-11-28 16:18:37 -0500

jason gravatar image

Hello, Now I want to using the example code from http://docs.opencv.org/2.4/doc/tutori... on my raspberry to do some image comparison. I have installed opencv 2.4.10 on raspberry pi. When I tried to incorporate the code with the one I download here http://sourceforge.net/projects/raspi... (raspicam-0.1.3/utils/raspicam_cv_test.cpp). There is some error to compile it. "fatal error: opencv2/imgcodecs.hpp: No such file or directory" So how could I solve this problem? I think it is because I didn't download the three hpp file:

include "opencv2/imgcodecs.hpp"

include "opencv2/highgui/highgui.hpp"

include "opencv2/imgproc/imgproc.hpp"

I download the whole zip file given here https://github.com/Itseez/opencv. But I didn't find them. So could anyone tell me where could I find these files and which directory should I put them in. Thanks! Regards

edit retag flag offensive close merge delete

Comments

opencv2/imgcodecs.hpp is part of opencv3, not available in opencv2.4

but you can try just to comment out that header, image loading functionality is in highgui.hpp for 2.4, it might just work...

berak gravatar imageberak ( 2015-11-28 22:48:53 -0500 )edit