📅  最后修改于: 2022-03-11 14:46:05.103000             🧑  作者: Mango
from PIL import Image
img = Image.open("image_file_path").convert('L').resize((28, 28), Image.ANTIALIAS)
img = np.array(img)
model.predict(img[None,:,:])