mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-11-21 19:07:46 +01:00
Fix snapshot access (#13996)
This commit is contained in:
parent
da1478c0c1
commit
ddfdb71783
@ -163,27 +163,22 @@ class EventProcessor(threading.Thread):
|
||||
)
|
||||
)
|
||||
|
||||
try:
|
||||
attributes = [
|
||||
(
|
||||
None
|
||||
if event_data["snapshot"] is None
|
||||
else {
|
||||
"box": to_relative_box(
|
||||
width,
|
||||
height,
|
||||
a["box"],
|
||||
),
|
||||
"label": a["label"],
|
||||
"score": a["score"],
|
||||
}
|
||||
)
|
||||
attributes = (
|
||||
None
|
||||
if event_data["snapshot"] is None
|
||||
else [
|
||||
{
|
||||
"box": to_relative_box(
|
||||
width,
|
||||
height,
|
||||
a["box"],
|
||||
),
|
||||
"label": a["label"],
|
||||
"score": a["score"],
|
||||
}
|
||||
for a in event_data["snapshot"]["attributes"]
|
||||
]
|
||||
except TypeError:
|
||||
logger.warning(
|
||||
f"Failed to parse attributes of event data, event data is {event_data}"
|
||||
)
|
||||
)
|
||||
|
||||
# keep these from being set back to false because the event
|
||||
# may have started while recordings and snapshots were enabled
|
||||
|
Loading…
Reference in New Issue
Block a user