Skip to content

NVR with realtime local object detection for IP cameras

Mark delivery objects with marker so LLM knows what is happening (#20736)

Nicolas Mowen685f2c50308c
diff --git a/frigate/data_processing/post/review_descriptions.py b/frigate/data_processing/post/review_descriptions.py
index babed21f33..94250dd37a 100644
--- a/frigate/data_processing/post/review_descriptions.py
+++ b/frigate/data_processing/post/review_descriptions.py
@@ -186,6 +186,7 @@ class ReviewDescriptionProcessor(PostProcessorApi):
thumbs,
camera_config.review.genai,
list(self.config.model.merged_labelmap.values()),
+ self.config.model.all_attributes,
),
).start()
@@ -414,6 +415,7 @@ def run_analysis(
thumbs: list[bytes],
genai_config: GenAIReviewConfig,
labelmap_objects: list[str],
+ attribute_labels: list[str],
) -> None:
start = datetime.datetime.now().timestamp()
analytics_data = {
@@ -441,7 +443,11 @@ def run_analysis(
continue
elif label in labelmap_objects:
object_type = label.replace("_", " ").title()
- unified_objects.append(object_type)
+
+ if label in attribute_labels:
+ unified_objects.append(f"{object_type} (delivery/service)")
+ else:
+ unified_objects.append(object_type)
analytics_data["unified_objects"] = unified_objects