Reading images in python

前端 未结 9 1990
北海茫月
北海茫月 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:04

    import matplotlib.pyplot as plt
    image = plt.imread('images/my_image4.jpg')
    plt.imshow(image)
    

    Using 'matplotlib.pyplot.imread' is recommended by warning messages in jupyter.

提交回复
热议问题