How to get Perceptual Hash in perl code

PerlMagick is an object-oriented Perl interface to ImageMagick. Use this forum to discuss, make suggestions about, or report bugs concerning PerlMagick.
Post Reply
100find
Posts: 2
Joined: 2018-02-06T02:42:38-07:00
Authentication code: 1152

How to get Perceptual Hash in perl code

Post 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 !
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: How to get Perceptual Hash in perl code

Post 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.
Post Reply