Take RTSP from command line
This commit is contained in:
parent
d60dad1c87
commit
9e0a3440cd
1 changed files with 2 additions and 2 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue