Pillow で画像をグレー(灰色)に
まず元の画像
>>> img = Image.open("./crowncat4020138_TP_V.jpg") >>> plt.imshow(img) <matplotlib.image.AxesImage at 0x7f62e821bac8>
グレーにする
>>> img_gray = img.convert("LA") >>> plt.imshow(img_gray) <matplotlib.image.AxesImage at 0x7f62e8043160>