Ask Your Question

mcprakash's profile - activity

2014-10-01 18:07:25 -0600 received badge  Editor (source)
2014-10-01 13:41:28 -0600 asked a question SET FPS Camera Error using OpenCV2.4.9

Hi I am using GCC and linux to compile my opencv code. I am getting this error when I use the following commands

VideoCapture cam(1);
cam.set(CV_CAP_PROP_FPS,30);
int fps=cam.get(CV_CAP_PROP_FPS);

Please help me out.

HIGHGUI ERROR: V4L2: Unable to get property <unknown property string>(5) - Invalid argument
I get the output as -1 for fps

However, if I run the same code in Visual Studio, it works fine.

Chandra

2013-10-05 17:12:47 -0600 asked a question Configuring Opencv2.4.6 in Eclipse

Hi guys I am trying to run OpenCv 2.4.6 in Eclipse in Linux. I have added the lib and include directories as is mentioned in http://docs.opencv.org/doc/tutorials/introduction/linux_eclipse/linux_eclipse.html However I am getting an error in undefined semantic IplImage. My src code is as follows :

include <stdio.h>

include <cv.h>

include <cxcore.h>

include <highgui.h>

int main()

{

IplImage* img= cvLoadImage(1,1);

cvNamedWindow("Hello World",1);

cvShowImage("Hello World",img);

cvWaitKey(0);

cvReleaseImage(&img);

return 0;

}

Please help me out if possible at the earliest.

CP