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, )