Coders Packet

Image Color Detector using OpenCV in Python

By Sinjini Ghosh

The aim of this Python OpenCV project is to implement an image color detector that identifies all the colors present in an image.

Aim of the project: To implement an image color detector that identifies the colors present in an image. 

Libraries used:

1. OpenCV

2. Matplotlib

3. Sklearn

Platform used: Jupyter Notebook

Programming language used: Python

ML algorithm applied: KMeans

The program asks the user to enter the file path in which the image is stored. It then asks for the number of distinct colors the user wants to identify in the image. It displays a pie chart for the different colors in the image. 

The zipped folder contains the following:

1. The Jupyter notebook containing the code

2. The image (.jpg file) that I have used in the program. You can use any image of your choice. 

 

 

Download Complete Code

Comments

No comments yet