python - 输出形状不正确
问题描述
一周前,我完美地运行了这段代码。但是今天我遇到了运行时错误:输出形状不正确
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])
`
解决方案
推荐阅读
- java - 我试图将我的对象转换为 JsonObject 后将其写入 Json 文件,但它没有被写入
- javascript - 打印窗口时出现空白页
- xamarin.forms - 找不到证书文件“Note.UWP_TemporaryKey.pfx”
- javascript - 当 useUTC 设置为 false 时,Highcharts 中的空白区域
- python - 如何增加 python folium 中的弹出窗口宽度?
- android - 自定义 AlertDialogBox 不显示来自不同的类
- sql-server - 使用多列的 Group by 和 Have 子句
- bash - 如何在引号内除以和乘以变量
- excel-formula - Power BI:比较表格视觉对象中的两列
- raspberry-pi - 通过 Gstreamer 在 RPI4 上使用硬件加速播放 mp4 视频