Use identifier field for unknown license plates (#17123)

* backend

* backend fixes

* api for search queries

* frontend

* docs

* add filterable scroll list to more filters pane for identifiers

* always publish identifier
This commit is contained in:
Josh Hawkins
2025-03-12 14:38:28 -06:00
committed by GitHub
parent 9e70bddc9d
commit 6360802612
16 changed files with 332 additions and 15 deletions
+5 -4
View File
@@ -137,12 +137,13 @@ class CameraState:
# draw the bounding boxes on the frame
box = obj["box"]
text = (
obj["label"]
obj["sub_label"][0]
if (
not obj.get("sub_label")
or not is_label_printable(obj["sub_label"][0])
obj.get("sub_label") and is_label_printable(obj["sub_label"][0])
)
else obj["sub_label"][0]
else obj.get("identifier", [None])[0]
if (obj.get("identifier") and obj["identifier"][0])
else obj["label"]
)
draw_box_with_label(
frame_copy,