📅  最后修改于: 2022-03-11 14:45:48.332000             🧑  作者: Mango
import cv2
def readImageAndResize(filename:str, size:tuple = (64,64)):
img = cv2.imread(filename)
img = cv2.resize(img, size)
return img