Get perceptual hash value for image using command line
Posted: 2016-08-07T17:56:00-07:00
How can I get the perceptual image hash value of an image using the command line? Is this possible? Does it even make sense? If it does - what's the best way to do this?
I'm a novice ImageMagick user & total ignoramus when it comes to perceptual hashing. I've been trying to find a way to generate a perceptual hash for a given image and store it in a database so it can be compared with other P-Hashes in the future. Experimenting with NodeJS & NPM packages, they all seem to return different values in different formats (hex or binary or varying wildly in length). I think I may be missing some critical knowledge about the entire concept of perceptual hashing. That, and/or a simple & very obvious flag I can pass to imagemagick's 'identify' program...
Apologies if this has already been covered - I just can't seem to find an answer. If anybody could give me a kick in the right direction it'd be greatly appreciated.
I'm a novice ImageMagick user & total ignoramus when it comes to perceptual hashing. I've been trying to find a way to generate a perceptual hash for a given image and store it in a database so it can be compared with other P-Hashes in the future. Experimenting with NodeJS & NPM packages, they all seem to return different values in different formats (hex or binary or varying wildly in length). I think I may be missing some critical knowledge about the entire concept of perceptual hashing. That, and/or a simple & very obvious flag I can pass to imagemagick's 'identify' program...
Apologies if this has already been covered - I just can't seem to find an answer. If anybody could give me a kick in the right direction it'd be greatly appreciated.