From 6b40a4eb18629b04f13afb5f8c5b4b42548df6fa Mon Sep 17 00:00:00 2001 From: "kt.lu" Date: Thu, 20 Apr 2023 16:59:30 +0800 Subject: [PATCH] Edit dsize order dsize could be (width, height). --- frigate/video.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frigate/video.py b/frigate/video.py index a64809f45..a3356a586 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, )