mirror of
https://github.com/blakeblackshear/frigate.git
synced 2025-05-17 01:16:06 +02:00
use const
This commit is contained in:
parent
61efdadd63
commit
2c75cd5a1d
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user