pil to read png to numpy array code example
Example: pil image from numpy
from PIL import Image
PIL_image = Image.fromarray(numpy_image.astype('uint8'), 'RGB')
from PIL import Image
PIL_image = Image.fromarray(numpy_image.astype('uint8'), 'RGB')