DEV Community

loading...

groupImg - Using k-means to organize your images

victorqribeiro profile image Victor Ribeiro Originally published at github.com ・1 min read

A script in python to organize your images by similarity.

groupImg uses a k-means algorithm to cluster your images according to their similarity.

Watch it working below:

groupImg

Discussion (4)

pic
Editor guide
Collapse
webdva profile image
Jermaine Easterling

That's a good use of k-means clustering.

Collapse
victorqribeiro profile image
Victor Ribeiro Author

thank you. I just update the readme to tell why I created this project. hope you like it.

Collapse
webdva profile image
Jermaine Easterling

Interesting origin of the script.

By the way, I tried to see what features you used to segment the photos, but I can't find the features without closer inspection of the source code. What features does the script use to segment the photos?

Thread Thread
victorqribeiro profile image
Victor Ribeiro Author

right now it only uses a histogram of the image as features, or if you pass the -s flag it will also include the width and height of the image. I had a prototype that uses other features (like corners) but it's not significantly better.