替换视频权重文件

main
姜尧 2023-09-27 16:05:26 +08:00
parent 5eba772ad2
commit 07208dbf46
1 changed files with 7 additions and 1 deletions

View File

@ -1,5 +1,11 @@
from urllib import parse
from ultralytics import YOLO from ultralytics import YOLO
# Configure the tracking parameters and run the tracker # Configure the tracking parameters and run the tracker
model = YOLO('best.pt') 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)