Answer the question
In order to leave comments, you need to log in
Python library or online image comparison service?
Good afternoon!
There is a service to which you need to add an image search (like google image search, but for our purposes):
- The user uploads an image.
- The system looks for a similar picture in the database.
- The user gets a list of similar images.
Requirements:
- The library must be free
- Preferably the library, not the online service API.
- I would like to be able to refine the "quality of comparison".
Answer the question
In order to leave comments, you need to log in
See more here and here . These articles have been very helpful to me. The algorithm is simple. You can quickly write your own program. Using the Hamming distance, you can control the "similarity" of images.
The first thing that came to mind was PIL and numpy. Using PIL, you can simply compare images, and finish with numpy (convert to an array of data and write a comparison algorithm). Here is the first thing I found on the subject:
You can also find the ImageMagick program in the answers . Only you do not need to compare them, but you need to look for similar ones, and this is a more difficult task.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question