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
Posts: 2
Joined: 2018-02-06T02:42:38-07:00
Authentication code: 1152

How to get Perceptual Hash in perl code

Post by 100find » 2018-02-06T02:52:20-07:00

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
Site Admin
Posts: 11098
Joined: 2003-05-31T11:32:55-07:00

Re: How to get Perceptual Hash in perl code

Post by magick » 2018-02-11T09:59:25-07:00

Look for the PerceptualHash() method in PerlMagick in the GIT master branch @ later today. The method will be available in the beta releases of ImageMagick @ by sometime tomorrow.

Post Reply