From 34f1d875ab6f1af4b0695fed5536d5fd2bc4e71c Mon Sep 17 00:00:00 2001 From: Nicolas Mowen Date: Tue, 20 May 2025 12:47:26 -0600 Subject: [PATCH] Apply attribute logic to all label types --- frigate/track/tracked_object.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/frigate/track/tracked_object.py b/frigate/track/tracked_object.py index 49bc3dfac..6b604b0e9 100644 --- a/frigate/track/tracked_object.py +++ b/frigate/track/tracked_object.py @@ -650,8 +650,9 @@ class TrackedObjectAttribute: best_object_id = obj["id"] best_object_label = obj["label"] else: - if best_object_label == "car" and obj["label"] == "car": - # if multiple cars are overlapping with the same label then the label will not be assigned + if best_object_label == obj["label"]: + # if multiple objects of the same type are overlapping + # then the attribute will not be assigned return None elif object_area < best_object_area: # if a car and person are overlapping then assign the label to the smaller object (which should be the person)