is not
parent
905a21af8f
commit
3940be3370
2
app.py
2
app.py
|
@ -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 = {}
|
||||
|
|
Loading…
Reference in New Issue