📜  读取图像并调整大小 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:48.332000             🧑  作者: Mango

代码示例1
import cv2
def readImageAndResize(filename:str, size:tuple = (64,64)):
    img = cv2.imread(filename)
    img = cv2.resize(img, size)
    return img