convert numpy.ndarray to pil image code example Example: ndarray to pil image from PIL import Image image_from_array = Image.fromarray(nd_array)