🚀Debug专栏
其他debug记录请参考上方【debug专栏】
❓❓问题
读图时报错如下信息,切换了不同库进行读图都读不进去:
ValueError: <COMPRESSION.LZW: 5> requires the 'imagecodecs' package
Warning 1: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.
🌻🌻解决方案
1.分析原因
报错原因是缺少包imagecodecs,安装下即可,安装命令:
conda install -c conda-forge imagecodecs
2.安装imagecodecs库
安装过程如下: