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