0% found this document useful (0 votes)
115 views

Amin Project

This document discusses color code detection using OpenCV. It introduces OpenCV as a computer vision library for image processing and describes color detection as a process that recognizes colors by retrieving red, green, and blue pixel values from an image. The document outlines the workflow, which involves preprocessing an input image, converting pixel values to RGB color space, matching colors to values in a CSV dataset to identify the color code, and getting the color name of each pixel. It also mentions tools used like Python, Pandas, and OpenCV and includes screenshots of a color detection application.

Uploaded by

Sahid Hussain
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
115 views

Amin Project

This document discusses color code detection using OpenCV. It introduces OpenCV as a computer vision library for image processing and describes color detection as a process that recognizes colors by retrieving red, green, and blue pixel values from an image. The document outlines the workflow, which involves preprocessing an input image, converting pixel values to RGB color space, matching colors to values in a CSV dataset to identify the color code, and getting the color name of each pixel. It also mentions tools used like Python, Pandas, and OpenCV and includes screenshots of a color detection application.

Uploaded by

Sahid Hussain
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 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