From 18d035cccd2aebb6dcc99adda424c963f0e0d6a6 Mon Sep 17 00:00:00 2001 From: Nicolas Mowen Date: Mon, 17 Mar 2025 15:02:21 -0600 Subject: [PATCH] Add attributes to search data --- frigate/api/event.py | 1 + web/src/types/search.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/frigate/api/event.py b/frigate/api/event.py index 88a865318..c4c763bf7 100644 --- a/frigate/api/event.py +++ b/frigate/api/event.py @@ -701,6 +701,7 @@ def events_search(request: Request, params: EventsSearchQueryParams = Depends()) for k, v in event["data"].items() if k in [ + "attributes", "type", "score", "top_score", diff --git a/web/src/types/search.ts b/web/src/types/search.ts index 5dca11973..af8e61674 100644 --- a/web/src/types/search.ts +++ b/web/src/types/search.ts @@ -50,6 +50,7 @@ export type SearchResult = { score: number; sub_label_score?: number; region: number[]; + attributes: [{ box: number[]; label: string; score: number }]; box: number[]; area: number; ratio: number;