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]:
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
No hay comentarios.:
Publicar un comentario