luanhailiang 2023-09-22 12:30:27 +08:00
parent 1cdc8f2e94
commit bd158261ef
1 changed files with 2 additions and 0 deletions

2
app.py
View File

@ -85,6 +85,8 @@ def worker(id,source,region=None,stream=False):
break
continue
result = model.track(frame,show=False,stream=False,persist=True,device=int(id)%4)
del(ret)
del(frame)
result = result[0]
detections = sv.Detections.from_yolov8(result)
if result.boxes.id is not None: