You are on page 1of 17

FE

B
10
th

COLOR
DETECTION
USING
PYTHON
ABOUT THE
PROJECT
In this project, we are going to build a color detection
system using Python.

The project includes:


A source code of the program
A data set containing the Red, Green and Blue
values respectively.
A sample image to run the test upon.
OUTLINES
:
What is Required
Color
Detectio
O Libraries
& Dataset
n
What is
O Steps for
open building a
CV? Color
O Detection

O
What is Open
CV?
Open CV is a Computer Vision library developed by Intel.

It is a collection of C functions and a few C++ classes


that implement popular Image Processing and Computer
Vision algorithms.

Open CV-Python is the Python API forOpenCV, combining the


best qualities ofthe Open CV C++ API and the Python
language.
What is
Pandas?
Pandas is an open source Python package that is most
widely used for data science/data analysis and machine
learning tasks

Built on top of another package named Numpy, which


provides support for multi-dimensional arrays
What is
umPy
NumPy is a general-purpose array-processing package

It is a Python scripting language.

NumPy aims to provide an array object that is up to 50


times faster than traditional Python lists to conduct a wide
range of array-based mathematical operations
COL
OR
The aspect of any object that
may be described in terms of
hue, lightness, and saturation
The hue is that aspect of colour
usually associated with terms
such as red, orange, yellow, and
so forth

Saturation refers to pure vividity


What is
Colour
Detection?
Colour Detection is the process of detecting the name of
any colour.

Colour detection is necessary to recognizeobjects, it is also


used as a tool in variousimage editing and drawing apps

Here we take a coloured image of 3channel


(RED,GREEN,BLUE). So each pixelhas a RED value,GREEN and
BLUE value.Our aim is to retrieve these values from animage
to determine the color of the pixel
How does Color
Detection work?
STEPS
S T EPERFORMED
P1
Ta k i n g an image fro
m the user
STEP
2e a d i n g
R the CSV file w
ith Pandas

S T E P3
Setting a mouse callba
ck event
ona window
STEP
4r e a t i n g
C t h ed r a w _ f u
nction
STEP
5r e a t i n g
C t h ed r a w _ f u
nction
STEP
5r e a t i n g
C t h ed r a w _ f u
nction
STEP
6u n n i n g
R the Py
thon File
RESUL
TS
THANK
YOU

You might also like