main
luanhailiang 2023-09-21 21:47:29 +08:00
parent 905a21af8f
commit 3940be3370
1 changed files with 1 additions and 1 deletions

2
app.py
View File

@ -81,7 +81,7 @@ def worker(id,source,region=None,stream=False):
detections = sv.Detections.from_yolov8(result)
if result.boxes.id is not None:
detections.tracker_id = result.boxes.id.cpu().numpy().astype(int)
detections = detections[(detections.tracker_id != None)]
detections = detections[(detections.tracker_id is not None)]
count += 1
names = {}