Numpy Resize/Rescale Image
Yeah, you can install opencv (this is a library used for image processing, and computer vision), and use the cv2.resize function. And for instance use: import cv2 import numpy as np img = cv2.imread(‘your_image.jpg’) res = cv2.resize(img, dsize=(54, 140), interpolation=cv2.INTER_CUBIC) Here img is thus a numpy array containing the original image, whereas res is a … Read more