mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-05-05 13:07:44 +03:00
Add attributes to search data
This commit is contained in:
parent
a904b3a527
commit
18d035cccd
@ -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",
|
||||
|
||||
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user