mirror of
https://github.com/simon987/fastimagehash.git
synced 2025-12-10 21:18:50 +00:00
Fix whash for images with invalid sizes, add remove_ll option for whash, remove multi hash
This commit is contained in:
@@ -30,6 +30,3 @@ fastimagehash v0.1
|
||||

|
||||

|
||||
|
||||
**multi_hash**
|
||||

|
||||

|
||||
|
||||
@@ -37,15 +37,3 @@ print_result("ahash", timeit.timeit(
|
||||
number=COUNT
|
||||
))
|
||||
|
||||
print_result("multi", timeit.timeit(
|
||||
setup="from imagehash import average_hash,phash,whash,dhash \n"
|
||||
"from PIL import Image",
|
||||
stmt="im = Image.open('%s');"
|
||||
"size = %d;"
|
||||
"average_hash(im.copy(), hash_size=size);"
|
||||
"phash(im.copy(), hash_size=size);"
|
||||
"whash(im.copy(), hash_size=size, remove_max_haar_ll=False);"
|
||||
"dhash(im.copy(), hash_size=size);"
|
||||
% (IMAGE, SIZE),
|
||||
number=COUNT
|
||||
))
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 17 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 16 KiB |
@@ -34,6 +34,4 @@ for f in files:
|
||||
method = "ahash"
|
||||
if "whash" in m:
|
||||
method = "whash"
|
||||
if "multi" in m:
|
||||
method = "multi"
|
||||
print("%s_%s,%s" % (f, method, t))
|
||||
|
||||
Reference in New Issue
Block a user