mirror of
https://github.com/simon987/fastimagehash.git
synced 2025-12-16 07:39:02 +00:00
Add multi_hash (wip/untested)
This commit is contained in:
@@ -36,3 +36,16 @@ print_result("ahash", timeit.timeit(
|
||||
stmt="average_hash(Image.open('%s'), hash_size=%d)" % (IMAGE, SIZE),
|
||||
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
|
||||
))
|
||||
|
||||
Reference in New Issue
Block a user