# Get PTZ configuration options for getting option ranges Request = _type('GetServiceCapabilities') # Use the first profile and Profiles have at least one #This is a demo camera that anyone can use for testing #Netcat camera (on my local network) Port 8899 ('/usr/local/lib/python2.7/dist-packages/onvif') # rtsp video streaming via OpenCV for frame capture #Relative move (pan increment, tilt increment, velocity) #Absolute pan-tilt (pan position, tilt position, velocity) # move right - (velocity, duration of move) Ptz.move_pan(1.0, 1) #move to a new home position #The PTZ2087 reports it is ONVIF 2.04 but is actually 2.4 (Netcat said text not changed after upgrade) #For IP control of PTZ, the camera should be compliant with ONVIF Profile S #ONVIF Client implementation is in Python #Test of Python and Quatanium Python-ONVIF with NETCAT camera PT-PTZ2087 The example is a bit long but I have tried to include enough code to show the contrast between working and non-working (with upper-case comments) portions for reference and test. I hope someone can suggest the problem with those two functions. All of this code executes without any errors but the camera does not move for the Absolute or Relative Moves. With the extracted test code below, I have all of that working except Absolute and Relative Moves. The required PTZ functions include Absolute Move, Relative Move, Continuous Move, Stop and using Preset positions. Hardware: Raspberry Pi 2 B, IP camera on local router, wifi/VNC for development Software: Debian Wheezy, Python 2.7, Quatanium python-onvif client I am developing an application in Python to control ONVIF-compatible cameras.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |