mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-11-21 19:07:46 +01:00
Edit dsize order (#6172)
dsize could be (width, height). Co-authored-by: kt.lu <kt.lu@latticeworkinc.com>
This commit is contained in:
parent
8535213ad9
commit
366c31259f
@ -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,
|
||||
)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user