How to get Perceptual Hash in perl code
Posted: 2018-02-06T02:52:20-07:00
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 !
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 !