May-27-2020, 09:42 AM
I expected that
pixels
variable is a numpy array, but, in fact, it is not. Find a way to extract/convert an Image object to numpy array; try np.asarray(pixels)
; To convert numpy array back to Image object, use Image.fromarray
method.