Save a capture from the raspberry pi camera

asked 2015-07-05 05:43:32 -0600

franken gravatar image

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 :)

edit retag flag offensive close merge delete

Comments

hi anybody here :)

franken gravatar imagefranken ( 2015-07-08 11:33:18 -0600 )edit