from PIL import Image PIL_image = Image.fromarray(numpy_image.astype('uint8'), 'RGB')
>>> pix = numpy.array(pic)