What you can do is simply work with the imagehash python module to analyze 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
if hash0 - hash1 < cutoff:
print('images are similar')
else:
print('images are not similar')
As the pictures are not specifically the same, there will be some variations. But imagehash will operate even if the images are resized, reduced, in different file forms, or with altered contrast or colors.
If you want to learn python then do check out the below python tutorial video for better understanding: