Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

Amin Project

Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 13

COLOR CODE DETECTION USING

OPENCV

NAME: HIRA ALI


STREAM: CSE, 4TH YEAR, 7TH SEM
ROLL NO : 28100117057
CONTENTS
 Introduction

 What is Color Detection

 Technology and Tools

 Workflow

 Data Collection

 Screenshot

 Conclusion and Future Scope

 References
INTRODUCTION

OpenCv 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. Some of the basic image
processing capabilities include filtering, edge detection, corner detection,
sampling and interpolation, color conversion, morphological operations,
histograms, image pyramids, contour processing, distance transform,
moments, template matching, Hough transform, polygonal,
approximation, etc.
WHAT IS COLOR DETECTION
Colour Code detection is a process where
we can recognize colours.

Here we take a coloured image of 3


channel (RED,GREEN,BLUE). So each
pixel has a RED value, GREEN and BLUE
value. Our aim is to retrieve these values
from an image to determine the color of
the pixel.

EXAMPLE: RED pixel means RED


=255,GREEN=0, BLUE=0 in a pure red
pixel. However in reality there will be
green and blue components too.
TOOLS & TECHNOLOGY

In this color detection Python


Python project, we are going to build an
application through which you can
Pandas automatically get the name of the
color by clicking on them. So for
OpenCv this, we will have a data file that
contains the color name and its
values. Then we will calculate the
distance from each color and find
the shortest one.
WORKFLOW

PRE- RGB COLOR


INPUT IMAGE
PROCESSING CONVERSION

COLOR CODE
IDENTIFY THE GETTING COLOR
MATCHING
COLOR CODE OF THE PIXEL
FROM CSV FILE
DATA COLLECTION

Colors are made up of 3 primary colors; red, green, and blue.


In computers, we define each color value within a range of 0 to
255. We will be using a dataset that contains RGB values with
their corresponding names.

Colors Dataset
The colors.csv file includes 865 color names along with their
RGB and hex values.
Screenshot
CONCLUSION & FUTURE
SCOPE

In this Python project , we learned about colors and how we can


extract color RGB values and the color name of a pixel. We
learned how to handle events like double-clicking on the window
and saw how to read CSV files with pandas and perform
operations on data. This is used in numerous image editing and
drawing apps.
REFERENCES

https://data-flair.training/blogs/project-in-python-
colour- detection/

 https://www.google.com/webhp

 https://www.youtube.com/
THANK YOU

You might also like