Convertir Numpy Array a PIL Image en Python

In [1]:
import matplotlib.image as image
import numpy as np
from PIL import Image

img = image.imread("img/banana.png")
img.shape
im = Image.fromarray(np.uint8(img*255))
im
Out[1]:

No hay comentarios.:

Publicar un comentario