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:
|
except ValueError:
|
||||||
continue
|
continue
|
||||||
print("{0:<30} {1}".format(image_name, distance), flush=True)
|
# print("{0:<30} {1}".format(image_name, distance), flush=True)
|
||||||
if distance <= 0.25:
|
if distance <= 0.1:
|
||||||
duplicates.append({"id": cache[image_name][0], "filename": image_name, "difference": distance})
|
duplicates.append({"id": cache[image_name][0], "filename": image_name, "difference": distance})
|
||||||
return duplicates
|
return duplicates
|
Loading…
Reference in New Issue
Block a user