use const

This commit is contained in:
Josh Hawkins 2025-03-21 07:53:15 -05:00
parent 61efdadd63
commit 2c75cd5a1d

View File

@ -734,7 +734,7 @@ class LicensePlateProcessingMixin:
scale_x = img_w / resized_w scale_x = img_w / resized_w
scale_y = img_h / resized_h scale_y = img_h / resized_h
else: 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 resized_h = LPR_EMBEDDING_SIZE
x_offset = (LPR_EMBEDDING_SIZE - resized_w) // 2 x_offset = (LPR_EMBEDDING_SIZE - resized_w) // 2
y_offset = (LPR_EMBEDDING_SIZE - resized_h) // 2 y_offset = (LPR_EMBEDDING_SIZE - resized_h) // 2
@ -886,7 +886,7 @@ class LicensePlateProcessingMixin:
( (
now, now,
camera, camera,
"license_plate", "car",
event_id, event_id,
True, True,
plate_score, plate_score,