From 833eca6ab23a4cdfed8576e7138d300eada73dc3 Mon Sep 17 00:00:00 2001 From: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com> Date: Sat, 17 May 2025 10:35:16 -0500 Subject: [PATCH] add area for all attributes --- frigate/camera/state.py | 2 +- frigate/track/tracked_object.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/frigate/camera/state.py b/frigate/camera/state.py index 025bf1266..d863d1040 100644 --- a/frigate/camera/state.py +++ b/frigate/camera/state.py @@ -180,7 +180,7 @@ class CameraState: box[2], box[3], attribute["label"], - f"{attribute['score']:.0%}{' ' + str(box_area) if attribute['label'] in ['license_plate', 'face'] else ''}", + f"{attribute['score']:.0%} {str(box_area)}", thickness=thickness, color=color, ) diff --git a/frigate/track/tracked_object.py b/frigate/track/tracked_object.py index e4dd29639..49bc3dfac 100644 --- a/frigate/track/tracked_object.py +++ b/frigate/track/tracked_object.py @@ -482,7 +482,7 @@ class TrackedObject: box[2], box[3], attribute["label"], - f"{attribute['score']:.0%}{' ' + str(box_area) if attribute['label'] in ['license_plate', 'face'] else ''}", + f"{attribute['score']:.0%} {str(box_area)}", thickness=thickness, color=color, )