Is there any basic (free or not), but usable - not like libpuzzle - image fingerprinting/similarity/compare module for PHP, which works akin to TinEye or Google image upload search? It's basically needed to avoid uploading almost the same (but with watermarks, resized etc.) image twice into a set of 50-300 images.
The similarity of the two images is detected using the package “imagehash”. If two images are identical or almost identical, the imagehash difference will be 0. Two images are more similar if the imagehash difference is closer to 0.
The general idea is very simple - pixel-by-pixel comparison. The comparison engine gets the color of pixels that have the same coordinates within the image and compares this color. If the color of each pixel of both images coincides, TestComplete considers the two images to be identical.
Take a look at http://www.intelliot.com/2008/03/sorted-directory-listing-image-resizing-comparison-and-similarity-in-php/
This is a very interesting educational article about image comparison. It wouldn't be hard at all to adapt to PHP using the GD library or ImageMagick.
http://www.hackerfactor.com/blog/index.php?/archives/432-Looks-Like-It.html
Good luck !
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With