convert arrat to PIL image 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')