2017-06-08 687 views

回答

3

你可以试试这个。

cap = cv2.VideoCapture(1) // Generate camera object 
cap.set(cv2.CAP_PROP_AUTOFOCUS, 0) // turn the autofocus off 

您可以在这些链接中找到更多关于如何设置一些属性的信息。

的VideoCapture类

http://docs.opencv.org/3.2.0/d8/dfe/classcv_1_1VideoCapture.html

的VideoCapture性能

http://docs.opencv.org/3.2.0/d4/d15/group__videoio__flags__base.html#ga023786be1ee68a9105bf2e48c700294d

+0

不'吨的工作,我觉得是OpenCV的版本。我有opencv 2.4.9。 –

+0

您可以试用Logitech网络摄像头软件。 http://support.logitech.com/en_us/product/hd-pro-webcam-c920/downloads 如果它不起作用,您可以尝试下载其他类似的软件,我看到有人控制他们的焦点网络摄像头在使用OpenCV流媒体时使用软件。 –