HikVision PTZ camera controlled by RPi

egroeg

n3wb
Joined
Mar 26, 2019
Messages
2
Reaction score
0
Location
Bucharest
Hello guys! I have a ptz hik vision camera and I want to controll this camera from a raspberry pi not from localhost.
It is possible to control the room using the python programming language?

Cheers
 

egroeg

n3wb
Joined
Mar 26, 2019
Messages
2
Reaction score
0
Location
Bucharest
comanda = os.system("curl -X PUT -T name.xml http://%s:%s@%s:%s%s" % (user, pw, host, port, link1))

user = username
pw = password
host = ip_camera
port = 80
link1 = /ISAPI/Image/channels/1/ircutFilter ON/OFF the IR FILTER
link2 = /PTZCtrl/channels/1/Continuous

and in name.xml you have to put the command like:

<PTZData><pan>0</pan><tilt>-50</tilt></PTZData>

PS. import os before programming

Best regards,
George Dumitru
 
Top