stationary objects won't have embeddings

This commit is contained in:
Josh Hawkins 2025-01-14 14:32:50 -06:00
parent 7f31a94520
commit debd21ed41

View File

@ -487,7 +487,8 @@ class NorfairTracker(ObjectTracker):
detection = Detection(
points=points,
label=label,
embedding=obj[6],
# TODO: stationary objects won't have embeddings
embedding=obj[6] if len(obj) > 6 else None,
data={
"label": label,
"score": obj[1],