From 9e0a3440cda7f8aed4abd558ffc31a094c3bef39 Mon Sep 17 00:00:00 2001 From: Davide Depau Date: Sun, 11 Aug 2024 21:01:28 +0200 Subject: [PATCH] Take RTSP from command line --- aruco_realtime.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aruco_realtime.py b/aruco_realtime.py index e7940c5..121a630 100644 --- a/aruco_realtime.py +++ b/aruco_realtime.py @@ -8,10 +8,10 @@ aruco_dict = cv2.aruco.getPredefinedDictionary(cv2.aruco.DICT_4X4_50) aruco_params = cv2.aruco.DetectorParameters() # Specify the RTSP URL -# rtsp_url = sys.argv[1] +rtsp_url = sys.argv[1] # webcam: -cap = cv2.VideoCapture(0) +cap = cv2.VideoCapture(rtsp_url) while True: ret, frame = cap.read()