Ask Your Question

ZubenkoMikhail's profile - activity

2019-04-20 07:51:08 -0600 received badge  Enthusiast
2019-04-10 04:41:09 -0600 commented answer How to disable autofocus of a webcam on Windows 10?

Forgot to mention, I was using virtual box to run on windows. If I run the same code on windows machine directly everyth

2019-04-10 04:40:23 -0600 marked best answer How to disable autofocus of a webcam on Windows 10?

I am working with python opencv and I am not able to disable autofocus, autoexposure etc on windows 10.

I am using Logitech BRIO 4k webcam.

On Ubuntu 18.04 with Opencv 3.4.4 using v4l backend I am able to set focus, exposure, video resolution successfully. However the same code doesn't work on windows

I have tried:

  1. Unofficial pre-built OpenCV packages for Python: opencv-contrib-python https://pypi.org/project/opencv-contr...
  2. build from source opencv 3.4.3 with MSMF, VFW, DSHOW backends
  3. build from source opencv 4.1 with MSMF, DSHOW backends

in every case above I am able to use opencv functionality, read and show frames from a webcam, but not able to disable autofocus.

Code that I use https://github.com/opencv/opencv/blob...

I use the following code to specify backend VideoCapture(0 + BACKEND_ID) where BACKEND_ID is taken from here

https://docs.opencv.org/3.4.3/d4/d15/...

2019-04-10 04:40:23 -0600 received badge  Scholar (source)
2019-04-09 05:32:17 -0600 asked a question How to disable autofocus of a webcam on Windows 10?

How to disable autofocus of a webcam on Windows 10? I am working with python opencv and I am not able to disable autofoc