How to convert pil image to NumPy array

How to convert PIL image to NumPy array

You can convert the PIL image to a NumPy array with the following code. If you want to learn Python, I highly recommend reading This Book. Output: <class ‘PIL.JpegImagePlugin.JpegImageFile’> <class ‘numpy.ndarray’> Free Learning Resources