Skip to content

Instantly share code, notes, and snippets.

@skt7
Created January 26, 2018 21:15
Show Gist options
  • Save skt7/d807356c72f0f783c4a7dcb4a0274e4e to your computer and use it in GitHub Desktop.
Save skt7/d807356c72f0f783c4a7dcb4a0274e4e to your computer and use it in GitHub Desktop.
img = 'colors.jpg'
clusters = 5
dc = DominantColors(img, clusters)
colors = dc.dominantColors()
dc.plotClusters()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment