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
- Johann Kyle Pinto 20BKT0009
- Riya Mathew 20BKT0016
Main Code : Color_Clustering_and_Detection.ipynb
Dataset : colors.csv
Test Image : detect_color.jpg
- Install the libraries required to run the program.
- Execute all the cells of the Jupyter notebook.
- 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)
- After execution of last cell, a new window will pop-up with the test image.
- 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.
- The name of the color will be displayed at the top of the screen in a rectangle.
- Double-Click on another location of the image to detect a new color.
- To exit the window, press the ESC key.