diff --git a/pyproject.toml b/pyproject.toml index 1a003593..6f8822f0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -2,7 +2,7 @@ name = "supervision" description = "A set of easy-to-use utils that will come in handy in any Computer Vision project" license = { text = "MIT" } -version = "0.26.0rc5" +version = "0.26.0rc6" readme = "README.md" requires-python = ">=3.8" authors = [ diff --git a/supervision/annotators/core.py b/supervision/annotators/core.py index d42e46d3..b5395737 100644 --- a/supervision/annotators/core.py +++ b/supervision/annotators/core.py @@ -9,6 +9,7 @@ from PIL import Image, ImageDraw, ImageFont from supervision.annotators.base import BaseAnnotator, ImageType from supervision.annotators.utils import ( + PENDING_TRACK_ID, ColorLookup, Trace, resolve_color, @@ -1739,6 +1740,7 @@ 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)):