From df435d323caa409d0f421d2f3ba02c5d4fe37c99 Mon Sep 17 00:00:00 2001 From: aspnmy Date: Fri, 29 Apr 2022 22:00:49 +0800 Subject: [PATCH] =?UTF-8?q?Update=20README.md=20=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E4=BA=86pHASH=E7=AE=97=E6=B3=95=E7=9A=84=E7=94=A8=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index d86845c..3a6ba81 100644 --- a/README.md +++ b/README.md @@ -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) ``` -- GitLab