Do OpenCV have flag that control zoom-in/out function of camera device?

asked 2018-05-28 02:14:38 -0600

hoang anh tuan gravatar image

updated 2018-05-28 03:12:08 -0600

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!

edit retag flag offensive close merge delete