costrom
0
Q:

pil image from numpy

from PIL import Image
image_from_array = Image.fromarray(nd_array)
2
from PIL import Image

PIL_image = Image.fromarray(numpy_image.astype('uint8'), 'RGB')
1
>>> pix = numpy.array(pic)
2
Image.fromarray(data, 'RGB')
-1

New to Communities?

Join the community