You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to access the zoom control of my Onvif enabled IP camera. I'm trying to execute example.py but with onvif_control instead of vapix_control. I added:
elif k == ord('z') or k == ord('Z'):
X.relative_move(None, None, 0.5)
Lines so when I press 'z', it would zoom in. However I'm facing an error when pressing 'Z', AttributeError: 'CameraControl' object has no attribute 'camera_ptz' error is given. I'm relatively new to onvif so can you help me out on how I can control the camera zoom function.
Thanks!
The text was updated successfully, but these errors were encountered:
To control the camera using ONVIF it is necessary to start the camera manually with the code line X.camera_start (), so the camera options are initialized.
I will add another example file with this initialization and the zoom control which you want to use. None values are not accepted by the library (I will modify this soon, so I ask you to assign values as zero).
Any problem can report to me, I was absent in the updates of the library but I will be attentive to new questions.
I added the "X.camera_start()" call immediately after the onvif_control.CameraControl call and got, "Unknown error: No such file: //Library/Python/3.7/lib/python/site-packages/wsdl/devicemgmt.wsdl".
Hi,
I'm trying to access the zoom control of my Onvif enabled IP camera. I'm trying to execute example.py but with onvif_control instead of vapix_control. I added:
elif k == ord('z') or k == ord('Z'):
X.relative_move(None, None, 0.5)
Lines so when I press 'z', it would zoom in. However I'm facing an error when pressing 'Z', AttributeError: 'CameraControl' object has no attribute 'camera_ptz' error is given. I'm relatively new to onvif so can you help me out on how I can control the camera zoom function.
Thanks!
The text was updated successfully, but these errors were encountered: