Answer the question
In order to leave comments, you need to log in
How to group / sort photos by similarity?
Greetings.
There are many photos and for certain purposes I would like to sort them, for example, by color similarity or other visual feature, as if by a smooth gradient, so that you can take several consecutive photos from anywhere in the list and they would be similar to each other.
Let me give you a simple example to understand.
There are photos of cats:
Sort them and get them sorted by color of cats:
What programs are there for this?
Answer the question
In order to leave comments, you need to log in
Are you looking for a ready-to - use taxologizer or would you like to create your own?
If the latter, then analyze the images:
There are simple ways. For example, batch compress all pictures to a resolution of, say, 3x3 or 5x5 pixels (depending on the number of pictures). Then you write out the numbers, first the central pixels, the middle ones, and lastly the extreme ones. Next, convert each pixel from RGB to HSL or HSV, writing the value of each channel to a separate number for each channel. As a result, each picture will correspond to three long numbers by which pictures can be sorted, and they will be similar in color. Pictures where three numbers are the same can be considered similar duplicates. If I wrote not sensibly enough, write a comment, I can chew the algorithm schematically.
UPD I
also remembered the utility for comparing images, included with ImageMagick. Even in the bookmarks, a small guide has been preserved on it . But, at one time I didn’t work with it, because it worked too slowly and the quality of the magic provided was no better than the scripts that I wrote myself. But maybe everything has changed and it's worth trying the tool in action again...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question