Page 1 of 1

How to get Perceptual Hash in perl code

Posted: 2018-02-06T02:52:20-07:00
by 100find
I leverage the Perceptual Hash to identify similar images, and it works well now. :lol:
I got the Perceptual Hash (42 floats) only by command : indentify -verbose -moments , which works very slowly because every images needs to lauch a "identify" process in Mem.
Is there any possible way to get the Perceptual Hash by using Perl script directly? such as the API provided by MagicCore.h C code?
Thanks !

Re: How to get Perceptual Hash in perl code

Posted: 2018-02-11T09:59:25-07:00
by magick
Look for the PerceptualHash() method in PerlMagick in the GIT master branch @ https://github.com/ImageMagick/ImageMagick later today. The method will be available in the beta releases of ImageMagick @ https://www.imagemagick.org/download/beta/ by sometime tomorrow.