I leverage the Perceptual Hash to identify similar images, and it works well now.
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 !
How to get Perceptual Hash in perl code
Re: How to get Perceptual Hash in perl code
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.