¿Cómo configurar la cámara FPS?¿Cómo configurar los FPS de la cámara en OpenCV? CV_CAP_PROP_FPS es falso
Puede ser cvSetCaptureProperty (cameraCapture, CV_CAP_PROP_FPS, 30); ?
Pero es volver ERROR HIGHGUI: V4L2: No se puede obtener la propiedad (5) - Argumento no válido
Debido a que no hay una aplicación en highgui/cap_v4l.cpp
static int icvSetPropertyCAM_V4L(CvCaptureCAM_V4L* capture,
int property_id, double value){
static int width = 0, height = 0;
int retval;
/* initialization */
retval = 0;
/* two subsequent calls setting WIDTH and HEIGHT will change
the video size */
/* the first one will return an error, though. */
switch (property_id) {
case CV_CAP_PROP_FRAME_WIDTH:
width = cvRound(value);
if(width !=0 && height != 0) {
retval = icvSetVideoSize(capture, width, height);
width = height = 0;
}
break;
case CV_CAP_PROP_FRAME_HEIGHT:
height = cvRound(value);
if(width !=0 && height != 0) {
retval = icvSetVideoSize(capture, width, height);
width = height = 0;
}
break;
case CV_CAP_PROP_BRIGHTNESS:
case CV_CAP_PROP_CONTRAST:
case CV_CAP_PROP_SATURATION:
case CV_CAP_PROP_HUE:
case CV_CAP_PROP_GAIN:
case CV_CAP_PROP_EXPOSURE:
retval = icvSetControl(capture, property_id, value);
break;
default:
fprintf(stderr,
"HIGHGUI ERROR: V4L: setting property #%d is not supported\n",
property_id);
}
/* return the the status */
return retval;
}
¿Cómo se puede solucionar?
Definitivamente es cierto que no todas las cámaras admiten todas las operaciones. –
Nunca dije eso, solo conté mi experiencia y cómo resolví un problema similar. –
Eso es cierto, pero tengo un Logitech c920 y esa cámara simplemente no admite todas las operaciones. Solo quería respaldar su afirmación "otros simplemente funcionó para ciertos tipos de cámara" :), relacionados con http://stackoverflow.com/questions/16432676/cant-access-properties-of-cvvideocapture-with-logitech-c920 –