mirror of
https://github.com/blakeblackshear/frigate.git
synced 2025-07-26 13:47:03 +02:00
Reduce expansion of license_plate box for frigate+ models (#17373)
This commit is contained in:
parent
6f707e8722
commit
b30de96525
@ -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],
|
||||
|
Loading…
Reference in New Issue
Block a user