From 85b59f4c216d92342500c0c6b60d9b91d8f17144 Mon Sep 17 00:00:00 2001 From: slashtechno <77907286+slashtechno@users.noreply.github.com> Date: Fri, 27 Oct 2023 12:00:17 -0500 Subject: [PATCH] Fixed nonexistent arg being used for RTSP --- wyzely_detect/__main__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wyzely_detect/__main__.py b/wyzely_detect/__main__.py index 72e4ea0..1b33493 100644 --- a/wyzely_detect/__main__.py +++ b/wyzely_detect/__main__.py @@ -41,8 +41,8 @@ def main(): # Depending on if the user wants to use a stream or a capture device, # Set the video capture to the appropriate source - if args.url: - video_capture = cv2.VideoCapture(args.url) + if args.rtsp_url is not None: + video_capture = cv2.VideoCapture(args.rtsp_url) else: video_capture = cv2.VideoCapture(args.capture_device)