【发布时间】:2019-03-15 02:59:53
【问题描述】:
我正在运行一个 python 代码来检查 Quora 和 Twitter 用户个人资料照片的相似性,但是当图像相同时我没有得到肯定的结果。
这是比较两张图片的代码:
path_photo_quora= "/home/yousuf/Desktop/quora_photo.jpg"
path_photo_twitter="/home/yousuf/Desktop/twitter_photo.jpeg"
if open(path_photo_quora,"rb").read() == open(path_photo_twitter,"rb").read():
print('photos profile are identical')
尽管图像相同,但控制台未打印“照片配置文件相同”,我该怎么办?
【问题讨论】:
标签: python image-processing user-profile image-scaling image-comparison