Take RTSP from command line

This commit is contained in:
Davide Depau 2024-08-11 21:01:28 +02:00
parent d60dad1c87
commit 9e0a3440cd

View file

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