ndarray para pil imagem
from PIL import Image
image_from_array = Image.fromarray(nd_array)
Dangerous Duck
from PIL import Image
image_from_array = Image.fromarray(nd_array)
from PIL import Image
PIL_image = Image.fromarray(numpy_image.astype('uint8'), 'RGB')
>>> pix = numpy.array(pic)