Post #1560435
2026-03-15 09:49 UTC
@r Great work! I was curious and added the distance calculation (basic stupid Euclidian distance) to compare two images:
https://github.com/adulau/open-alleged-photodna/commit/c0275801088442cd4f5693b6403678daf5f75b7a
and the results are surprisingly good with rescaled images.
adulau@blakley:~/git/open-alleged-photodna$ python3.10 oaphotodna.py /home/adulau/Downloads/55147310088_ced977bdee_c.jpg /home/adulau/Downloads/55147310088_45f9e4b2cc_k.jpg
Distance (euclidean): 8.4261
Similarity: 0.997246
The source image https://www.flickr.com/photos/adulau/55147310088/
I just did PR (feel free to discard it if you think it's out-of-scope ;-)
Replies (1)
-
@dngrs@chaos.social 2026-03-15 13:45
@adulau @r huh, no perceptual hashing? That's surprising Edit: Ah, should've looked at the code first. Distance between hashes that I suppose are perceptual then