1

I am trying to disable the autofocus on my portable USB webcam (model: Trust Zyno Full HD Video Webcam) using a python and opencv. Using cap.set(cv.CAP_PROP_AUTOFOCUS, 0) as proposed in this previous unanswered question, does not work for me.

I saw another topic which is instead related to Linux, and others related to c++ solutions.

However, I am working on Windows 10, using Python 3.6 and opencv 3.4.0.12.

Can anyone help? Thank you in advance.

Fiordarancio
  • 63
  • 1
  • 9

1 Answers1

0

try to use follows:

  // Turning off autofocus
  cap1.set( cv.CAP_PROP_SETTINGS, 1 );

);