diff --git a/README.md b/README.md index d86845c3208035b019eaf92fca4001af434ea671..3a6ba817a23ccdbdbd32f9eba744374b1492d318 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) ```