1
Chronos User Discussion / Accessing the live feed of the camera using Python and OpenCV
« on: September 21, 2022, 04:12:03 AM »
I have connected to the camera via the IP address, which has allowed me to use the web application to control the camera and record footage.
However, I want to use OpenCV in Python to use the frames in real-time.
Currently, I use the following code to connect to the camera:
cap = cv2.VideoCapture('rtsp://192.168.110.101')
while True:
ret, frame = cap.read()
And it connects but "frame" is none.
I've seen other posts that use 'rtsp://admin:[email protected]' But that makes no difference the frame is always none.
Is this a problem with how the Chronos works or an OpenCV problem?
Thanks
However, I want to use OpenCV in Python to use the frames in real-time.
Currently, I use the following code to connect to the camera:
cap = cv2.VideoCapture('rtsp://192.168.110.101')
while True:
ret, frame = cap.read()
And it connects but "frame" is none.
I've seen other posts that use 'rtsp://admin:[email protected]' But that makes no difference the frame is always none.
Is this a problem with how the Chronos works or an OpenCV problem?
Thanks
