Python Codes for V380 cameras. The Python codes provide the following options:-
- Live Streaming from Camera (Local and Remote)
- PTZ Control of Camera (Local and Remote)
- Image Capture
Steps to use on local network:-
- Setup the V380 camera.
- Find the wireless network of the camera and connect your system to it.
- Find the IP address of the camera ( generally 192.168.1.1 for wireless)
- Replace the ip-address in the python files (rtsp://:@/live/ch00_0, http://:8899/onvif/ptz) If no username or password, just enter the ip-address alone.
- Run the command ' sudo chmod +x <python-filename.py> '
- ./<python-filename.py>
To use remotely, do the following steps:-
- Connect the camera with ethernet.
- Find the ip address assigned to camera
- Do portforward settings in router to map the ip to specific ports. Generally rtsp uses 554 and onvif ptz uses 8899 ports
- Change the ip address in V380_complete_public.py (For rtsp url change as rtsp://username:password@,public_ip>/live/ch00_0, for ptz http://:8899/onvif/ptz)
- sudo chmod +x V380_complete_public.py
- ./V380_complete_public.py
v380.py - Live Stream of V380 v380cap.py - Live Stream with Image Capture of V380 (Press SPACE to capture image) v380post.py - ptz control of V380
Press the followimg keys:-
i - up , - down j - left l - right k - stop
V380_complete.py - Live Stream, Image Capture, PTZ control V380_complete_public.py - Same as V380_complete.py with Public ip.