Skip to content

Instantly share code, notes, and snippets.

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