Reduce expansion of license_plate box for frigate+ models (#17373)

This commit is contained in:
Josh Hawkins
2025-03-26 06:25:39 -05:00
committed by GitHub
parent 6f707e8722
commit b30de96525

View File

@@ -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],