Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import requests
- import imagehash
- from PIL import Image
- import io
- tur1im = Image.open(io.BytesIO(requests.get(r"http://apkbank.ru/common/upload/Monets/TURGENEV-18_3_rublya.jpg").content))
- tur2im = Image.open(io.BytesIO(requests.get(r"http://www.cbr.ru/legacy/PhotoStore/img/5111-0395r.jpg").content))
- h1 = imagehash.phash(tur1im)
- h2 = imagehash.phash(tur2im)
- print(h1)
- print(h2)
Advertisement
Add Comment
Please, Sign In to add comment