From b30de965255f5ae87d3949c11c7d453cdabef265 Mon Sep 17 00:00:00 2001 From: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com> Date: Wed, 26 Mar 2025 06:25:39 -0500 Subject: [PATCH] Reduce expansion of license_plate box for frigate+ models (#17373) --- frigate/data_processing/common/license_plate/mixin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frigate/data_processing/common/license_plate/mixin.py b/frigate/data_processing/common/license_plate/mixin.py index 9bf2119f9..1d80a4c02 100644 --- a/frigate/data_processing/common/license_plate/mixin.py +++ b/frigate/data_processing/common/license_plate/mixin.py @@ -1135,9 +1135,9 @@ class LicensePlateProcessingMixin: license_plate_frame = cv2.cvtColor(frame, cv2.COLOR_YUV2BGR_I420) - # Expand the license_plate_box by 30% + # Expand the license_plate_box by 10% box_array = np.array(license_plate_box) - expansion = (box_array[2:] - box_array[:2]) * 0.30 + expansion = (box_array[2:] - box_array[:2]) * 0.10 expanded_box = np.array( [ license_plate_box[0] - expansion[0],