Share My Creation Detect dominant colors of images

The method is explained here: http://charlesleifer.com/blog/using-python-and-k-means-to-find-the-dominant-colors-in-images/

It uses KMeans to cluster pixels. The pixel value of the centroid of one cluster is the dominant color of that cluster. An image may have many dominant colors. The number of clusters need to be set manually.

The tool uses weka to support KMeans.

无标题2.png
 

Attachments

  • DominantColor.zip
    209.2 KB · Views: 997
  • DominantColor-v1.1.zip
    208.2 KB · Views: 734
Top