smartsenselab / sensecam-control

MIT License
45 stars 26 forks source link

AttributeError: 'CameraControl' object has no attribute 'camera_ptz' #3

Open canozcivelek opened 4 years ago

canozcivelek commented 4 years ago

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!

igorhenriquedias94 commented 4 years ago

I apologize for the delay in the solution.

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.

canozcivelek commented 4 years ago

Thank you very much for getting back. I will give it a try, and please let me know when you are able to add examples with ONVIF zoom control.

Best.

rhettplace commented 3 years ago

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".

So, is there .wsdl management required?