NVR with realtime local object detection for IP cameras
TypeScript aicameragoogle-coralhome-assistanthome-automationhomeautomationmqttnvrobject-detectionrealtimertsptensorflow
Reduce expansion of license_plate box for frigate+ models (#17373)
Josh Hawkinsb30de965255f
diff --git a/frigate/data_processing/common/license_plate/mixin.py b/frigate/data_processing/common/license_plate/mixin.pyindex 9bf2119f93..1d80a4c029 100644--- a/frigate/data_processing/common/license_plate/mixin.py+++ b/frigate/data_processing/common/license_plate/mixin.py@@ -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.10expanded_box = np.array([license_plate_box[0] - expansion[0],