mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-05-05 21:17:43 +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()
|
for k, v in event["data"].items()
|
||||||
if k
|
if k
|
||||||
in [
|
in [
|
||||||
|
"attributes",
|
||||||
"type",
|
"type",
|
||||||
"score",
|
"score",
|
||||||
"top_score",
|
"top_score",
|
||||||
|
|||||||
@ -50,6 +50,7 @@ export type SearchResult = {
|
|||||||
score: number;
|
score: number;
|
||||||
sub_label_score?: number;
|
sub_label_score?: number;
|
||||||
region: number[];
|
region: number[];
|
||||||
|
attributes: [{ box: number[]; label: string; score: number }];
|
||||||
box: number[];
|
box: number[];
|
||||||
area: number;
|
area: number;
|
||||||
ratio: number;
|
ratio: number;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user