how to convert a image i a numpy arr code example Example: open image in numpy image = PIL.Image.open(pathToImage) frame = numpy.asarray(image)