title: Fast algorithm to detect main colors in an image?
body: <p>Does anyone know a fast algorithm to detect main colors in an image?</p>
  
  <p>I'm currently using k-means to find the colors together with Python's PIL but it's very slow. One 200x200 image takes 10 seconds to process. I've several hundred thousand images.</p>