Disable webcam's autofocus in Windows using opencv-python

前端 未结 1 1027
独厮守ぢ
独厮守ぢ 2021-01-25 16:21

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)<

1条回答
  •  一整个雨季
    2021-01-25 16:58

    try to use follows:

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

    );

    0 讨论(0)
提交回复
热议问题