此类问题一般跟python的imageio模块有关,
解决办法一可尝试加个plugin
image = io.imread(filename,plugin='matplotlib')
或者加个pilmode
imageio.imread(filename,pilmode="RGB")
参考链接一
解决办法二也可以换别的模块比如Image读取图片,参考链接二
解决办法三最秀的问题可能是图片本身坏了[捂脸],
套用大力哥的那句话,“万万没想到哇!”。
简单总结一下:本篇博客提供了该类问题的一个新原因,另外温馨提醒读者们在解决问题过程中也可能忽视了一些不起眼的“硬件问题”,在此引鉴。