首页 > 解决方案 > 输出形状不正确

问题描述

一周前,我完美地运行了这段代码。但是今天我遇到了运行时错误:输出形状不正确

from PIL import Image
import glob
import numpy as np
import scipy.ndimage.filters
import matplotlib.pyplot as plt

image_list_Brownspot = []

for filename in glob.glob('./dataset/BrownSpot/*.jpg'):
    im=Image.open(filename)
    image_list_Brownspot.append(im.copy())
    im.close()

len(image_list_Brownspot)
lap = scipy.ndimage.filters.laplace(image_list_Brownspot[0])

`

标签: pythonimagescipypython-imaging-libraryglob

解决方案


推荐阅读