Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Try to use VideoCapture(0, cv.CAP_MSMF) constructor. I've tried this sample with modified constructor and cap.set(cv.CAP_PROP_AUTOFOCUS, False) returned True for BRIO 4K.

I've found that focus values should have range 0-100 (even maybe 0-255?) for this camera/backend, so you will need to change v/100 to v when setting focus property.