2020年3月21日土曜日

JupyterLab で Pillow で Matplotlib 無しでインライン画像表示

In [34]:
from PIL import Image
import numpy as np

im = Image.open('IMG_20200302_210756-2.png')
newsize = np.array(im.size) // 10
resized_im = im.resize(newsize)
In [35]:
resized_im
Out[35]:
In [ ]: