How to check for duplicate images
Heya all,
I see that there is this blog post: Image fingerprinting Identify similar images using pHash (cloudinary.com) but I cannot for the life of me work out how I can check through my existing images when I upload a new image to check if there is a duplicate.
I thought I could use perhaps the search api to run a foreach through but the phash isnt returned from the search api...
Any help would be appreciated
-
Hello,
To get the phash of an existing image, you can use the Admin API to get the details of a single resource and add the parameter "phash: true". So, from your search result, you can iterate each item and call the admin api.
Please note that the Admin and Search API is rate limited, so it would be better to save these details to your database.Regards,
Francis1
Post is closed for comments.
Comments
1 comment