import skimage
image = skimage.data.imread("my_image.png")
我使用这段代码读取图像,但我得到一个错误为"skimage.data"没有属性"imread"。我的skimage版本是0.18.1。读取图像需要改变什么?
错误很简单。您尝试在数据模块中调用imread函数,但是在这个模块中没有这样的函数。叫
skimage.io.imread('blah.png')
。