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
this simply means: your camera's driver does not support it.
Well not completely. It is also possible that OpenCV doesn't support the camera's API. Why not use the API that is supplied with the camera itself to set the FPS rate?