import cv2 img = cv2.imread('0_116_99_355_0.jpg') # 方法一: # res = cv2.resize(img,None,fx=2,fy=2,interpolation=cv2.INTER_CUBIC) #比例因子:fx=2,fy=2 # 方法二: print(img.shape) height, width = img.shape[:2] res = cv2.resize(img, (129, 128), interpolation=cv2.IN…