how to save numpy array as image Pillow code example
Example 1: pil image to numpy
>>> pix = numpy.array(pic)
Example 2: save numpy arrayw with PIL
from PIL import Image
im = Image.fromarray(A)
im.save("your_file.jpeg")
>>> pix = numpy.array(pic)
from PIL import Image
im = Image.fromarray(A)
im.save("your_file.jpeg")