node-phash
node-pash is pHash bindings for node.js.
Phash is a library that will create a "perceptual hash" of media files, so similar files will return similar hashes. Typically to compare hashes, a simple Hamming distance between the two hashes is a good indicator of how similar two media files are.
Current version supports only image hashing. (no video & audio hashing)
Installation
node-phash depends on CImg, pHash, ImageMagicK.
On Ubuntu:
sudo apt-get install cimg-dev libphash0-dev libmagickcore-dev
On OSX:
brew install phash imagemagick
Then, install using npm:
$ npm install phash
Functions
// asynchronous hash
Usage
var pHash = ; pHash; var hashA = pHash;var hashB = pHash;var hammingAB = pHash;console;