DEV Community

Victor Ribeiro
Victor Ribeiro

Posted on Originally published at github.com

groupImg - Using k-means to organize your images

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

Top comments (4)

Collapse
 
webdva profile image
webdva •

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

Collapse
 
victorqribeiro profile image
Victor Ribeiro •

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

Collapse
 
webdva profile image
webdva •

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 •

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.