From 05e147989b17b38a998cf79d4814cfd11e5f3ad2 Mon Sep 17 00:00:00 2001 From: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com> Date: Wed, 1 May 2024 07:30:45 -0500 Subject: [PATCH] add sub_label to camera activity --- frigate/object_processing.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/frigate/object_processing.py b/frigate/object_processing.py index e03cf005e..676c175ec 100644 --- a/frigate/object_processing.py +++ b/frigate/object_processing.py @@ -739,12 +739,14 @@ class CameraState: if not obj.false_positive: label = object_type + sub_label = None if obj.obj_data.get("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" + sub_label = obj.obj_data["sub_label"][0] camera_activity["objects"].append( { @@ -754,6 +756,7 @@ class CameraState: "area": obj.obj_data["area"], "ratio": obj.obj_data["ratio"], "score": obj.obj_data["score"], + "sub_label": sub_label, } )