Reading images in python

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

    you can try to use cv2 like this

    import cv2
    
    image= cv2.imread('image page')
    
    cv2.imshow('image', image)
    
    cv2.waitKey(0)
    
    cv2.destroyAllWindows()
    

提交回复
热议问题