Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Change focus of a V4l2 Cam

Hi there, i´m using Ubuntu 12.10 with all dependencies and libv4l2.I want to change the focus of a V4l2 Cam. I´m trieing it with the following code:

VideoCapture cam;
cam.set(CV_CAP_PROP_FOCUS ,d);

Capture frames works.

If I use Windows 7 the code works fine.