main
luanhailiang 2023-09-21 21:07:13 +08:00
parent 9379e807d6
commit 3abc6000d3
1 changed files with 1 additions and 1 deletions

2
app.py
View File

@ -68,7 +68,7 @@ def worker(id,source,region=None,stream=False):
ret, frame = cap.read()
if not ret:
print("Error read video stream.")
continue
break
result = model.track(frame,show=False,stream=False,persist=True,device=int(id)%4)
result = result[0]
detections = sv.Detections.from_yolov8(result)