提交 df435d32 编写于 作者: aspnmy's avatar aspnmy

Update README.md 更新了pHASH算法的用法

上级 902cefbd
......@@ -40,7 +40,7 @@ https://gitcode.net/aspnmy/python_dff_hash_pic
##path=r"C:\Users\Administrator\Desktop\upload\img1"
# 需要比较的图片的原始地址
##aim_photo =r"C:\Users\Administrator\Desktop\upload\img1\pic_0136.png"
##sshash 代表用于比较的算法,传入dhash就才有dhash算法进行计算,传ahash就用ahash进行计算
##sshash 代表用于比较的算法,传入dhash就才有dhash算法进行计算,传ahash就用ahash进行计算,传phash就用phash进行计算
#sshash = 'dhash'
......@@ -50,9 +50,13 @@ https://gitcode.net/aspnmy/python_dff_hash_pic
#sshash1 = 'ahash'
#rs=dff_img_one(path,aim_photo,sshash1)
#timea =(datetime.datetime.now()-time1).microseconds
#sshash1 = 'phash'
#rs=dff_img_one(path,aim_photo,sshash1)
#timep =(datetime.datetime.now()-time1).microseconds
#print(type(rs))
#print("与原始文件完全相同的文件是",rs,"算法为",sshash,"耗时为dhash",timed,"耗时为ahash",timea)
#print("与原始文件完全相同的文件是",rs,"算法为",sshash,"耗时为dhash",timed,"耗时为ahash",timea,"耗时为phash",timep)
#print("dahash算法比ahash算法速度上要快",timea-timed)
```
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册