Ask Your Question

Revision history [back]

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

Chandra

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

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

fps=cam.get(CV_CAP_PROP_FPS);

Please help me out. out.

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

fps

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

Chandra