mirror of
https://github.com/blakeblackshear/frigate.git
synced 2025-12-06 13:34:13 +03:00
Fix timeline attribute assumption (#20555)
This commit is contained in:
parent
a2396db2aa
commit
f6f555387e
@ -142,11 +142,14 @@ class TimelineProcessor(threading.Thread):
|
|||||||
timeline_entry[Timeline.data]["attribute"] = list(
|
timeline_entry[Timeline.data]["attribute"] = list(
|
||||||
event_data["attributes"].keys()
|
event_data["attributes"].keys()
|
||||||
)[0]
|
)[0]
|
||||||
timeline_entry[Timeline.data]["attribute_box"] = to_relative_box(
|
|
||||||
camera_config.detect.width,
|
if len(event_data["current_attributes"]) > 0:
|
||||||
camera_config.detect.height,
|
timeline_entry[Timeline.data]["attribute_box"] = to_relative_box(
|
||||||
event_data["current_attributes"][0]["box"],
|
camera_config.detect.width,
|
||||||
)
|
camera_config.detect.height,
|
||||||
|
event_data["current_attributes"][0]["box"],
|
||||||
|
)
|
||||||
|
|
||||||
save = True
|
save = True
|
||||||
elif event_type == EventStateEnum.end:
|
elif event_type == EventStateEnum.end:
|
||||||
timeline_entry[Timeline.class_type] = "gone"
|
timeline_entry[Timeline.class_type] = "gone"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user