Code Monkey home page Code Monkey logo

sensecam-control's People

Contributors

igorhenriquedias94 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

sensecam-control's Issues

IRCutFilter error

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?

'CameraControl' object has no attribute 'camera_ptz'

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

How to get snapshot

Can you instruct me or guide me in how to write a function to get snapshots from the AXIS PTZ cameras?

Thanks!

camera does not move using vapix_control

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

Sample / tutorial

There are some sample some samples or tutorial how to use this library? I.e how to start a continous stream etc?

Thank

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

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!

onvif.exceptions.ONVIFError: Unknown error: HTTPConnectionPool

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?

onvif.exceptions.ONVIFError: Unknown error: Unknown fault occured

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.