Answers for "save numpy array to png pil"

4

pil image to numpy

>>> pix = numpy.array(pic)
Posted by: Guest on June-17-2020
0

save numpy arrayw with PIL

from PIL import Image
im = Image.fromarray(A)
im.save("your_file.jpeg")
Posted by: Guest on April-18-2021

Python Answers by Framework

Browse Popular Code Answers by Language