mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-11 13:45:25 +03:00
Send sub label correctly
This commit is contained in:
parent
ccd9826325
commit
a43344a5af
@ -742,9 +742,12 @@ class CameraState:
|
|||||||
|
|
||||||
if (
|
if (
|
||||||
obj.obj_data.get("sub_label")
|
obj.obj_data.get("sub_label")
|
||||||
and obj.obj_data.get("sub_label")[0] in ALL_ATTRIBUTE_LABELS
|
|
||||||
):
|
):
|
||||||
label = obj.obj_data["sub_label"]
|
if obj.obj_data.get("sub_label")[0] in ALL_ATTRIBUTE_LABELS:
|
||||||
|
label = obj.obj_data["sub_label"][0]
|
||||||
|
else:
|
||||||
|
label = f"{object_type}-verified"
|
||||||
|
|
||||||
|
|
||||||
camera_activity["objects"].append(
|
camera_activity["objects"].append(
|
||||||
{"id": obj.obj_data["id"], "label": label, "stationary": not active}
|
{"id": obj.obj_data["id"], "label": label, "stationary": not active}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user