test new approach

This commit is contained in:
SkalskiP 2025-04-24 00:08:06 +02:00
parent 639318832b
commit 2ea0f443f8
1 changed files with 1 additions and 3 deletions

View File

@ -1740,13 +1740,11 @@ class TraceAnnotator(BaseAnnotator):
"The `tracker_id` field is missing in the provided detections."
" See more: https://supervision.roboflow.com/latest/how_to/track_objects"
)
detections = detections[detections.tracker_id != PENDING_TRACK_ID]
self.trace.put(detections)
for detection_idx in range(len(detections)):
tracker_id = int(detections.tracker_id[detection_idx])
if tracker_id == PENDING_TRACK_ID:
continue
color = resolve_color(
color=self.color,
detections=detections,