【发布时间】:2020-12-06 19:34:41
【问题描述】:
所以我正在使用 skimage 进行一些图像预处理(我对它很陌生)。我有一个PIL Image 对象,想用skimage.io.imread() 转换为skimage 图像。我知道我可以只保存图像然后在该文件上运行imread,但我想知道是否有一种方法可以从代码本身读取PIL Image 对象。我尝试在 PIL Image 对象本身上运行imread,但最终出现错误。
OSError: Cannot understand given URI: <PIL.PngImagePlugin.PngImageFile image mode=RGBA size=192....
任何人都知道我可以如何在 skimage 中解决这个问题。
【问题讨论】:
标签: python numpy python-imaging-library scikit-image