How to show PIL Image in ipython notebook

前端 未结 12 1426
抹茶落季
抹茶落季 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:08

    In order to simply visualize the image in a notebook you can use display()

    %matplotlib inline
    from PIL import Image
    
    im = Image.open(im_path)
    display(im)
    

提交回复
热议问题