Changed hashing behavior
This commit is contained in:
parent
1f867630f4
commit
1cbfd6abe8
@ -52,7 +52,7 @@ async def get_duplicates(hash: str, album: str) -> list:
|
||||
)
|
||||
except ValueError:
|
||||
continue
|
||||
print("{0:<30} {1}".format(image_name, distance), flush=True)
|
||||
if distance <= 0.25:
|
||||
# print("{0:<30} {1}".format(image_name, distance), flush=True)
|
||||
if distance <= 0.1:
|
||||
duplicates.append({"id": cache[image_name][0], "filename": image_name, "difference": distance})
|
||||
return duplicates
|
Loading…
Reference in New Issue
Block a user