From e2064bc695efabb4ba3ee87dc9a03cc6ab4f8676 Mon Sep 17 00:00:00 2001 From: caleb Date: Tue, 25 Apr 2023 19:28:23 -0500 Subject: [PATCH] Default camera connection string use sub stream, high res not necessary, this increases stability while processing in live-mode --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index 2c39615..2a6be97 100644 --- a/main.py +++ b/main.py @@ -548,7 +548,7 @@ def receive(producer_q): cam_ip = os.environ['CAM_IP'] cam_pw = os.environ['CAM_PW'] connect_str = "rtsp://admin:" + cam_pw + "@" + cam_ip - connect_str2 = connect_str + ":554" + "//h264Preview_01_main" # this might be different depending on camera used + connect_str2 = connect_str + ":554" + "//h264Preview_01_sub" # this might be different depending on camera used os.environ['OPENCV_FFMPEG_CAPTURE_OPTIONS'] = 'rtsp_transport;tcp' # Use tcp instead of udp if stream is unstable c = cv2.VideoCapture(connect_str)