eynollah/qurator/eynollah/utils/resize.py
2021-02-27 17:38:55 +01:00

4 lines
157 B
Python

import cv2
def resize_image(img_in, input_height, input_width):
return cv2.resize(img_in, (input_width, input_height), interpolation=cv2.INTER_NEAREST)