From a43344a5affb4b4e2d70ab28abd759eab700fb21 Mon Sep 17 00:00:00 2001 From: Nicolas Mowen Date: Tue, 30 Apr 2024 15:53:46 -0600 Subject: [PATCH] Send sub label correctly --- frigate/object_processing.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/frigate/object_processing.py b/frigate/object_processing.py index 9fc21a28b..bece3720a 100644 --- a/frigate/object_processing.py +++ b/frigate/object_processing.py @@ -742,9 +742,12 @@ class CameraState: if ( 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( {"id": obj.obj_data["id"], "label": label, "stationary": not active}