how to convert an iamge to an array in python code example Example: open image in numpy image = PIL.Image.open(pathToImage) frame = numpy.asarray(image)