Answers for "how to display image using numpy"

2

open image in numpy

image = PIL.Image.open(pathToImage)
frame = numpy.asarray(image)
Posted by: Guest on July-04-2020
1

pil image from numpy

from PIL import Image

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

Code answers related to "how to display image using numpy"

Python Answers by Framework

Browse Popular Code Answers by Language