Answers for "jpegimagefile to numpy array"

2

pil image from numpy

from PIL import Image

PIL_image = Image.fromarray(numpy_image.astype('uint8'), 'RGB')
Posted by: Guest on October-04-2020
4

pil image to numpy

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

Python Answers by Framework

Browse Popular Code Answers by Language