python中plt.imshow()不显示图片

      最后更新:2022-03-22 12:30:07 手机定位技术交流文章

      要显示图片, python 绘图功能可能需要某种配置或执行某种功能。

      Python, 点 Imsshow (图像) 无法显示图片解决方案 。

      Plat. Imsshow () 发现无法显示图像, 而 plat. show (s) 仍然无法显示 。
      先引入包pylab
      import pylab

      然后,在 imshow (img) 之后, 添加一条线代码到 plt 上 。
      pylab.show()

      图片框就显示出来了
      在这里插入图片描述
      参考链接:

      https://blog.csdn.net/zzq060143/article/details/82288693
      https://blog.csdn.net/weixin_44153180/article/details/122599053
      https://www.cnpython.com/qa/27525

      本文由 在线网速测试 整理编辑,转载请注明出处,原文链接:https://www.wangsu123.cn/news/20666.html

          热门文章

          文章分类