How to convert image to a numpy array using python code example Example: pil image to numpy >>> pix = numpy.array(pic)