Do OpenCV have flag that control zoom-in/out function of camera device?
Hi everyone,
I want to control zoom-in/out function of a camera - such as Logitech 930. But i don't want to use resize function in OpenCV. Same as when you want to turn off focus of camera, you may be use the following flag:
camera.set(cv2.CAP_PROP_AUTOFOCUS,0)
camera.set(cv2.CAP_PROP_FOCUS,focus_value)
I want to follow this to control zoom-in/out before reading image from camera.
Update 1:
I find out this flag: cv2.CV_CAP_PROP_ZOOM. But i don't know how it works.
Please, show me the way to do it.
thank all!
add a comment