How to check similarity of two images that have different pixelization
You can use the imagehash library to compare similar images. from PIL import Image import imagehash hash0 = imagehash.average_hash(Image.open(‘quora_photo.jpg’)) hash1 = imagehash.average_hash(Image.open(‘twitter_photo.jpeg’)) cutoff = 5 # maximum bits that could be different between the hashes. if hash0 – hash1 < cutoff: print(‘images are similar’) else: print(‘images are not similar’) Since the images are not exactly … Read more