Okay, so I have 2 images:
and
and I want to compare them
from PIL import Image, ImageChops
im1 = Image.open('im1.png')
im2= Image.open('im2.png')
def compare(im1, im2):
#blah blah blah
Basically the 2 images are practically the same but 1 is larger and the other is smaller, so one has more pixels and the other has less pixels. I want a function that compares the 2 images and, for example, expresses the difference in numbers. If the number is small, I know the difference is almost non-existent, but if the number is large, they are different.
Or any other function that compares images. If you want use these 2 images, which I have used, so the result will be the same. Thanks