A Comparison of Image Hashing Libraries
totems.co
totems.co
libPuzzle: Splits the image in blocks and compute the hash based on the relationships between the adjacent blocks brightness.
pHash: Computes the 8x8 DCT (http://en.wikipedia.org/wiki/Discrete_cosine_transform) representation of an image (lowest frequencies of the image). It then sets the hash by comparing each of these 8×8 values to the mean DCT value (very resilient to non-structural changes in the image).
I updated the post with these informations
I'm going to upload the SHA distance tonight.
* http://www.hackerfactor.com/blog/index.php?/archives/529-Kin...
* The main difference being that libpHash applies a gaussian blur over the image, which can be made redundant by using a decent resampling algorithm.
http://download.picturelife.com.s3.amazonaws.com/press-kits/...
Currently we're just doing a `WHERE BIT_COUNT(images.phash ^ inputHash) < 12` in MySQL over 400k rows, which still works reasonably well (~200ms) given that it can't use an index for the XOR/BIT_COUNT operation. To my knowledge there's no way to speed up this query in MySQL, so if we continue to grow we probably have to write a small daemon that is able to search hashes more efficiently.
It's similar to what an engine like TinEye does, but instead of using a bunch of SIFT/SURF/etc features to do numerous visual word lookups, you'd just put in (a modified?) phash and get one word out.
http://stackoverflow.com/questions/4196453/simple-and-fast-m... (my own :)) http://stackoverflow.com/questions/75891/algorithm-for-findi... http://stackoverflow.com/questions/596262/image-fingerprint-...
Naively I'd expect image hashing to be like cross-correlation (non-linear) while password hashing can be done with shifts and modulo-2 (linear).
Deleted comment
Only time I have issues consistent issues is "Show HN:" posts and start-up websites. Most my day to day browsing is hardly affected by this.
Demanding js for showing simple text+images on the web, is a little like distributing a text email as an .exe-file IMNHO.
SIFT: http://www.google.com/patents/US6711293
SURF: http://worldwide.espacenet.com/publicationDetails/biblio?CC=...
More info: http://opencv-users.1802565.n2.nabble.com/SURF-protected-by-...