gpt4 book ai didi

python - 脱脂图像 : how to show image

转载 作者:太空狗 更新时间:2023-10-29 17:23:15 25 4
gpt4 key购买 nike

我是 skimage 的新手,我尝试在我的 ipython 笔记本中显示图像:\

from skimage import data, io
coins = data.coins()
io.imshow(coins)

但我只看到以下字符串:

<matplotlib.image.AxesImage at 0x7f8c9c0cc6d8>

任何人都可以解释一下如何在代码下面显示图片吗: Correct output

最佳答案

只需在 io.imshow(coins) 行之后添加 matplotlib.pyplot.show()

from skimage import data, io
from matplotlib import pyplot as plt


coins = data.coins()
io.imshow(coins)
plt.show()

关于python - 脱脂图像 : how to show image,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38606372/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com