pil image.fromarray show() code example
Example 1: pil image from numpy
from PIL import Image
PIL_image = Image.fromarray(numpy_image.astype('uint8'), 'RGB')
Example 2: pillow image from array
PIL.Image.fromarray(your_array)
from PIL import Image
PIL_image = Image.fromarray(numpy_image.astype('uint8'), 'RGB')
PIL.Image.fromarray(your_array)