Fixed nonexistent arg being used for RTSP

This commit is contained in:
slashtechno 2023-10-27 12:00:17 -05:00
parent 9e39132506
commit 85b59f4c21
Signed by: slashtechno
GPG Key ID: 8EC1D9D9286C2B17
1 changed files with 2 additions and 2 deletions

View File

@ -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)