Save a capture from the raspberry pi camera
Hi all , i'm trying to write a simple programm that read a frame from the raspberry pi camera board and save it in an image format (jpg ...) here is the fonctions used :
RaspiCamCvCapture * capture = (RaspiCamCvCapture ) raspiCamCvCreateCameraCapture2(0, config); IplImage image = raspiCamCvQueryFrame(capture);
cvSaveImage("test.jpg",image,0);
when compiling i get some errors : In file included from opencv2/imgproc.hpp:46:0, opencv2/core.hpp:49:4: error: #error core.hpp header must be compiled as C++ In file included from opencv2/core.hpp:54:0, opencv2/core/base.hpp:49:4: error: #error base.hpp header must be compiled as C++ opencv2/core/base.hpp:52:19: fatal error: climits: No such file or directory compilation terminated.
i think i"m combinning c with c++ but how can i solve this !!! thanks :)
hi anybody here :)