Store and show boxes for attributes in timeline (#20513)

* Store and show boxes for attributes in timeline

* Simplify
This commit is contained in:
Nicolas Mowen
2025-10-16 07:00:38 -06:00
committed by GitHub
parent 4e99ee0c33
commit 2e7a2fd780
4 changed files with 29 additions and 103 deletions
+5
View File
@@ -142,6 +142,11 @@ class TimelineProcessor(threading.Thread):
timeline_entry[Timeline.data]["attribute"] = list(
event_data["attributes"].keys()
)[0]
timeline_entry[Timeline.data]["attribute_box"] = to_relative_box(
camera_config.detect.width,
camera_config.detect.height,
event_data["current_attributes"][0]["box"],
)
save = True
elif event_type == EventStateEnum.end:
timeline_entry[Timeline.class_type] = "gone"