add computed and top score to timeline entries

This commit is contained in:
Josh Hawkins 2026-04-07 09:41:15 -05:00
parent ed3bebc967
commit acf4b4093b
2 changed files with 3 additions and 0 deletions

View File

@ -116,6 +116,8 @@ class TimelineProcessor(threading.Thread):
), ),
"attribute": "", "attribute": "",
"score": event_data["score"], "score": event_data["score"],
"computed_score": event_data.get("computed_score"),
"top_score": event_data.get("top_score"),
}, },
} }

View File

@ -400,6 +400,7 @@ class TrackedObject:
"start_time": self.obj_data["start_time"], "start_time": self.obj_data["start_time"],
"end_time": self.obj_data.get("end_time", None), "end_time": self.obj_data.get("end_time", None),
"score": self.obj_data["score"], "score": self.obj_data["score"],
"computed_score": self.computed_score,
"box": self.obj_data["box"], "box": self.obj_data["box"],
"area": self.obj_data["area"], "area": self.obj_data["area"],
"ratio": self.obj_data["ratio"], "ratio": self.obj_data["ratio"],