jjmark15
4/3/2017 - 2:00 PM

compares two images to see if they are the same (regardless of name)

compares two images to see if they are the same (regardless of name)

from PIL import Image

p1 = Image.open("pic_1.jpg")
p2 = Image.open("pic_2.jpg")


if list(p1.getdata()) == list(p2.getdata()):
    print("Identical")
else:
    print("Different")