Skip to content

The ML algorithm clusters different shades of colors given in the dataset. In addition it also detects the colors from images and states the name of the color as stated in the dataset

Notifications You must be signed in to change notification settings

johannkpinto/Color-Clustering-and-Detection-from-Image

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Color-Clustering-and-Detection-from-Image

The ML algorithm clusters different shades of colors given in the dataset. In addition it also detects the colors from images and states the name of the color as stated in the dataset

Contributers

  1. Johann Kyle Pinto 20BKT0009
  2. Riya Mathew 20BKT0016

Files

Main Code : Color_Clustering_and_Detection.ipynb
Dataset : colors.csv
Test Image : detect_color.jpg

Libraries Used

  1. OpenCV
  2. numpy
  3. pandas
  4. matplotlib
  5. textwrap

Steps to run the Program

  1. Install the libraries required to run the program.
  2. Execute all the cells of the Jupyter notebook.
  3. You can view the clusters formed. To check for a random cluster execute 'getCluster(num)' in a new cell, where num is the cluster number.(Note that the value of num should be between 1 to 130 since 130 clusters were formed using K-Means Algorithm)
  4. After execution of last cell, a new window will pop-up with the test image.
  5. Double-Click on the location of the image on the new window, where you want to the name of the color used in that location of the image.
  6. The name of the color will be displayed at the top of the screen in a rectangle.
  7. Double-Click on another location of the image to detect a new color.
  8. To exit the window, press the ESC key.

About

The ML algorithm clusters different shades of colors given in the dataset. In addition it also detects the colors from images and states the name of the color as stated in the dataset

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published