jxmorris12
jxmorris12

Reputation: 1383

Comparing a large set of images by content

I am running a server using Flask (Python) that allows users to upload images. (Eventually images will be sent to an S3 bucket; for now, they're just saved to disk.) However, I want to prevent duplicate and similar images.

This means that each time that a user attempts to upload an image, I have to search through the database (in a fashion similar to tineye). If a similar result exists, the app will not upload the image. Is this type of "reverse image search" possible with just the Python Imaging Library? Are there other Python frameworks out there that have been used to accomplish similar tasks? Or perhaps an Amazon tool?

Upvotes: 1

Views: 1202

Answers (1)

bigbounty
bigbounty

Reputation: 17408

Using the image library create a finger print of unique images.If a new image comes in check against the finger prints and take the decision appropriately.

For fingerprinting refer this https://realpython.com/blog/python/fingerprinting-images-for-near-duplicate-detection/

If you want to bring AI here, Look out for autoencoder.

Upvotes: 4

Related Questions