Paid: Obtain PHASH of images
Posted: 2018-09-07T12:32:23-07:00
Hi,
I currently have ImageMagick 7.0.8-10 Q16 x86_64 on an Amazon Linux box. I need to obtain a phash from ImageMagick which will be stored in a db for future comparison (via Hamming distance). I am after a script that will obtain & return the phash.
I understand that there may be several different ways of obtaining a phash from IM but I have no understanding of how they work or which is the best for my use case.
This will be used for establishing near-duplicates of product images where the cropping, image size and compression may be different, but the image is fundamentally the same. I have uploaded three images as examples: https://www.dropbox.com/sh/jjbyhh97n4lf ... e1sja?dl=0
In the example I would expect a close match for images 1 & 2, but not for image 3. I am not sure if it would skew results, but nearly all product images will have white backgrounds.
If anyone is interested and can help, please let me know.
I currently have ImageMagick 7.0.8-10 Q16 x86_64 on an Amazon Linux box. I need to obtain a phash from ImageMagick which will be stored in a db for future comparison (via Hamming distance). I am after a script that will obtain & return the phash.
I understand that there may be several different ways of obtaining a phash from IM but I have no understanding of how they work or which is the best for my use case.
This will be used for establishing near-duplicates of product images where the cropping, image size and compression may be different, but the image is fundamentally the same. I have uploaded three images as examples: https://www.dropbox.com/sh/jjbyhh97n4lf ... e1sja?dl=0
In the example I would expect a close match for images 1 & 2, but not for image 3. I am not sure if it would skew results, but nearly all product images will have white backgrounds.
If anyone is interested and can help, please let me know.