smartsenselab / sensecam-control Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
Hi
I am using CameraConfiguration class from vapix_config for set_ir_cut_filter()
When I do like this:
Y = vapix_config.CameraConfiguration(ip, login, password)
Y.set_ir_cut_filter(ir_cut="auto", shift_level=60)
It is working perfectly.
But when I give value like 'on' or 'off' then its giving me error:
#Error: Error setting 'root.ImageSource.IO.DayNight.IrCutFilter' to 'off'! (For OFF case)
#Error: Error setting 'root.ImageSource.IO.DayNight.IrCutFilter' to 'on'!(For ON case)
Can anyone help what I am doing wrong?
Hello PTZ-Fans,
I tried running your package example code but run into following error:
Python 3.9.7 | packaged by conda-forge | (default, Sep 29 2021, 20:33:18)
[Clang 11.1.0 ] on darwin
Type "help", "copyright", "credits" or "license" for more information.
IP = "192.168.178.52" # Camera IP address
PORT = 8080 # Port
USER = "admin" # Username
PASS = "admin" # Password
from sensecam_control import onvif_control
Camera2 = onvif_control.CameraControl(IP, USER, PASS)
Camera2.absolute_move(0.02, 0.60, 0.0)
Traceback (most recent call last):
File "", line 1, in
File "/Users/mymac/anaconda3/envs/onvif39/lib/python3.9/site-packages/sensecam_control/onvif_control.py", line 64, in absolute_move
request = self.camera_ptz.create_type('AbsoluteMove')
AttributeError: 'CameraControl' object has no attribute 'camera_ptz'
Any idea how to get my cam working?
Greetings,
Armin
Can you instruct me or guide me in how to write a function to get snapshots from the AXIS PTZ cameras?
Thanks!
Hi, thanks for you work
I want to use vapix_control method with speed para, However, the camera does not move, maybe the problem is http in vapix_control.py file , but how do I change it, whats the rule ?
please give some advices, really thanks
There are some sample some samples or tutorial how to use this library? I.e how to start a continous stream etc?
Thank
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!
I'm running the example_control_onvif with rtsp and it show
onvif.exceptions.ONVIFError: Unknown error: HTTPConnectionPool(host='192.168.150.155', port=80): Max retries exceeded with url: /onvif/device_service (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f4d42d2f860>: Failed to establish a new connection: [Errno 113] No route to host',))
I don't know whether the configuration I did is correct, can you help me to configure, such as which line should I change?
@victorhcm @williamschwartz @ricardobf @igorhenriquedias94
Thanks for your good repo.
I am going to calculate pan, tilt, and zoom values based on bounding box coordinates. In other words, changing the camera center to the bounding box center. The image is shown below. Can you help me calculate the pan, tilt, and zoom?
does it support digital zoom for onvif camera
Traceback (most recent call last):
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\onvif\client.py", line 23, in wrapped
return func(*args, **kwargs)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\onvif\client.py", line 153, in wrapped
return call(params, callback)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\onvif\client.py", line 140, in call
ret = func(**params)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\zeep\proxy.py", line 46, in call
return self._proxy._binding.send(
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\zeep\wsdl\bindings\soap.py", line 135, in send
return self.process_reply(client, operation_obj, response)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\zeep\wsdl\bindings\soap.py", line 229, in process_reply
return self.process_error(doc, operation)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\zeep\wsdl\bindings\soap.py", line 352, in process_error
raise Fault(
zeep.exceptions.Fault: Unknown fault occured
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\Administrator\Downloads\prashant\ptz_test\test2.py", line 63, in
X.camera_start()
File "C:\Users\Administrator\Downloads\prashant\ptz_test\sensecam_control\onvif_control.py", line 36, in camera_start
mycam = ONVIFCamera(self.__cam_ip, 80, self.__cam_user, self.__cam_password)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\onvif\client.py", line 216, in init
self.update_xaddrs()
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\onvif\client.py", line 233, in update_xaddrs
capabilities = self.devicemgmt.GetCapabilities({'Category': 'All'})
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\onvif\client.py", line 26, in wrapped
raise ONVIFError(err)
onvif.exceptions.ONVIFError: Unknown error: Unknown fault occured
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.