Lire l'image et redimensionner

import cv2
def readImageAndResize(filename:str, size:tuple = (64,64)):
    img = cv2.imread(filename)
    img = cv2.resize(img, size)
    return img
Fancy Flatworm