Skip to content

NVR with realtime local object detection for IP cameras

Edit dsize order (#6172)

KtAlumi366c31259f75
diff --git a/frigate/video.py b/frigate/video.py
index a64809f455..a3356a5866 100755
--- a/frigate/video.py
+++ b/frigate/video.py
@@ -104,7 +104,7 @@ def create_tensor_input(frame, model_config, region):
if cropped_frame.shape != (model_config.height, model_config.width, 3):
cropped_frame = cv2.resize(
cropped_frame,
- dsize=(model_config.height, model_config.width),
+ dsize=(model_config.width, model_config.height),
interpolation=cv2.INTER_LINEAR,
)