Reading images in python

前端 未结 9 1988
北海茫月
北海茫月 2021-02-03 19:59

I am trying to read a png image in python. The imread function in scipy is being deprecated and they recommend using imageio

9条回答
  •  别那么骄傲
    2021-02-03 20:07

    From documentation:

    Matplotlib can only read PNGs natively. Further image formats are supported via the optional dependency on Pillow.

    So in case of PNG we may use plt.imread(). In other cases it's probably better to use Pillow directly.

提交回复
热议问题