3 ms·
This is cool. Do you happen to know if the thumbhash string has other uses? Perhaps grouping images by similarity or something?
by fiddlerwoaroof 4y ago
This is cool. Do you happen to know if the thumbhash string has other uses? Perhaps grouping images by similarity or something?
- mholt 4y agoI just wrote a quick function to compare visual similarity using the thumbhash and just adding up the difference at each byte position seems to work really well! (As long as the images are the same aspect ratio. I want to do more tests.)
- bityard 4y agoThat's a whole field of study on its own, called perceptual hashing. I surveyed these a while for amusement and the TL;DR is that all immediately obvious approaches tend to have particularly bad corner cases. https://en.wikipedia.org/wiki/Perceptual_hashing https://en.wikipedia.org/wiki/Perceptual_hashing
- 8n4vidtmkvmk 4y agoI was thinking about that too. Can't answer the question, but I did come across this just the other day: https://github.com/cloudinary/ssimulacra2 https://github.com/cloudinary/ssimulacra2 Supposedly good for comparing image similarity. Might depend on your use-case, I think it's geared towards image quality moreso than similar photos.