Skip to content

This will guide in steps how to find the most dominant colours in an image using K-means Algoritham

Notifications You must be signed in to change notification settings

graju1401/Dominant-colours-in-an-image

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Dominant-colours-in-an-image

To find the most dominant colours in an image, we can do this by using K-Means clusturing algorithm. The main role of the K-means algorithm is that it will collect all the pixcels of same colour into a cluster and group all the clusters in a set.

Go to the terminal and change your directory to the file where most_dominant_color.py , utils.py and some images are kept.

Run this command to get the output $ python most_dominant_color.py -–image imagefilename.jpg -–clusters 5

About

This will guide in steps how to find the most dominant colours in an image using K-means Algoritham

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages