From 2c75cd5a1d5cbeba27e5abffc5938b6103e5158e Mon Sep 17 00:00:00 2001 From: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com> Date: Fri, 21 Mar 2025 07:53:15 -0500 Subject: [PATCH] use const --- 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 9a4c55d32..d1c6216b1 100644 --- a/frigate/data_processing/common/license_plate/mixin.py +++ b/frigate/data_processing/common/license_plate/mixin.py @@ -734,7 +734,7 @@ class LicensePlateProcessingMixin: scale_x = img_w / resized_w scale_y = img_h / resized_h else: - resized_w = int(((img_w / img_h) * 512) // 4 * 4) + resized_w = int(((img_w / img_h) * LPR_EMBEDDING_SIZE) // 4 * 4) resized_h = LPR_EMBEDDING_SIZE x_offset = (LPR_EMBEDDING_SIZE - resized_w) // 2 y_offset = (LPR_EMBEDDING_SIZE - resized_h) // 2 @@ -886,7 +886,7 @@ class LicensePlateProcessingMixin: ( now, camera, - "license_plate", + "car", event_id, True, plate_score,