6 ms·
I don't know if it makes sense to query hamming distance for hash. Closest hashes don't guarantee closest images at all. You can check for amount of parts match
by varelaz 5y ago
I don't know if it makes sense to query hamming distance for hash. Closest hashes don't guarantee closest images at all. You can check for amount of parts matching by query like:
select video_id from video_hashes where hash in (...) group by video_id order by count(distinct hash) desc limit 10
technically it can be fast since selection on hash could be very narrow. You need only index by hash, video_id.
- CaveTech 5y agoOP is referring to phashes aka perceptual hashes, where closest hashes should indeed indicate similarity.