From 07208dbf46fd61841145f94de46bf64da93e67ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A7=9C=E5=B0=A7?= Date: Wed, 27 Sep 2023 16:05:26 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=BF=E6=8D=A2=E8=A7=86=E9=A2=91=E6=9D=83?= =?UTF-8?q?=E9=87=8D=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/test.py b/test.py index 77920ff..a712d35 100644 --- a/test.py +++ b/test.py @@ -1,5 +1,11 @@ +from urllib import parse + from ultralytics import YOLO # Configure the tracking parameters and run the tracker model = YOLO('best.pt') -results = model.track(source="./videos/123.mp4", conf=0.3, iou=0.5, show=True) +source2 = "rtmp://rtmp03open.ys7.com:1935/v3/openlive/L05874022_1_1?expire=1726487667&id=625419662355599360&t=228dca5d37b6bead201e80cca3fc5fe74140242278e4eb51a99bcce593cae027&ev=100" +# source = parse.urlencode({"source": source2}) +# source = "./videos/123.mp4" +results = model.track(source=source2, conf=0.3, iou=0.5, show=True) +