How to show PIL Image in ipython notebook

前端 未结 12 1375
抹茶落季
抹茶落季 2020-12-22 23:18

This is my code

from PIL import Image
pil_im = Image.open(\'data/empire.jpg\')

I would like to do some image manipulation on it, and then s

12条回答
  •  情话喂你
    2020-12-23 00:07

    Based on other answers and my tries, best experience would be first installing, pillow and scipy, then using the following starting code on your jupyter notebook:

    %matplotlib inline
    from matplotlib.pyplot import imshow
    from scipy.misc import imread
    
    imshow(imread('image.jpg', 1))
    

提交回复
热议问题