(Color Identification in Images) : Iot & Computer Vision
(Color Identification in Images) : Iot & Computer Vision
(Color Identification in Images) : Iot & Computer Vision
SUBMITTED BY
SHARATH CHANDRA PALLE (T190953051)
HOPE FOUNDATION’s
INTERNATIONAL INSTITUTE OF INFORMATION TECHNOLOGY,
HINJAWADI, PUNE(MH)-411057
This is to certify that Sharath Chandra Palle (T190953051), class of TE(E&TC) has satisfactorily
completed the internship as part of fulfilling the requirements of Internship (304199) course in the
Semester II of TE E&TC Engineering (A.Y. 2021-2022) of Savitribai Phule Pune University.
External Examiner
Place: Pune
Date:
3
Internship Certificate
4
Internship Place Details
Website: https://www.thesparksfoundationsingapore.org/
The Sparks Foundation (TSF) is a non-profit organization registered in India and Singapore. We envision
a world of enabled and connected little minds, building the future. They aim to inspire students, help them
innovate, and let them integrate to build the next generation of humankind. The Sparks Foundation help
the students to integrate and help each other, learn from each other, and do well together.
The Graduate Rotational Internship Program (GRIP) is the flagship program of TSF in which students,
recent graduates, and professionals focus on technical skills development as well as professional profile
improvement on LinkedIn. The program gives young aspiring minds a learning platform to connect with
students and professionals from varied diversity, background, skills, and countries. During the Covid-19
pandemic, the format of GRIP is a 1-month, unpaid, and virtual internship .
Internet of Things (IoT) conceptualizes the idea of remotely connecting and monitoring real world objects
(things) through the Internet. Computer vision is the science that means to give a comparative, if not
better, capacity to a machine or PC. Computer vision is worried about the programmed extraction,
investigation and comprehension of valuable data from a single picture or a grouping of pictures. Some of
the basic image processing capabilities include filtering, edge detection, corner detection, sampling and
interpolation, color conversion, morphological operations, histograms and many more. Color detection
using OpenCV has many advantages like, it allows the detection of a specific color in a livestream video
content. In this OpenCV color detection system there are four major modules, activated webcam, scan
object, match frame parts and system results.
C. Personal observation
The internship opportunity that I had with The Sparks Foundation was a great chance for learning and
professional development. I'm grateful for having a chance to meet so many wonderful people and
professionals through this internship period. I take this opportunity to express my heartfelt gratitude to
each one of them. OpenCV may be a library of programming functions mainly aimed toward real-time
computer vision. In simple language, it's a library used for Image Processing. It’s mainly wanted to do all
the operations associated with Images. I put in the library on the computer. I begin writing the code which
will make use of the various features in OpenCV. I build this code and run it to perform the task you
described. OpenCV may be a Computer Vision library with APIs that permit you found out a pipeline for
your Computer Vision project.
5
Table of Contents
1 Introduction 7
2 Objectives 7
4 Methodological Details 7
8 Appendix 15
6
1. Introduction
My project of Color detection System can work in any computer with minimum specification.
The detection process takes less than a moment and this is very beneficial for companies. The
first thing to start with is observation. With the help of Color Detection, it will be easy to identify
the color and give its name to the persons using it. This project is made to reach each and
everyone in the society suffering from color blindness so that everyone can get benefit from this.
Color Detection technology is very accurate and no one can doubt it. The project designed by us
can be used through basic camera also. No special cameras are required for its basic functioning,
but for using it as an assistant in self drive cars the camera should be good and more than one
should be used for getting an overall view around the car. And all the cameras should be
connected to each other.
2. Objectives
In this color detection Python project, the objective of this study is to build an application
through which you can automatically get the name of the color by clicking on them.
4. Methodological Details
A. Capturing and Storing Image:
In this, the capturing of image takes place. The image stored in this process is later used for
detecting the color.
B. Image Processing:
• In this module, the programs run over gives the image for further operation.
• When all the images are perfectly processed and the program is ready to detect the color.
C. Color Detection:
7
• In this module, the programs has completed the Image Processing and is ready to take the input
of the user.
• The program which is already displaying the window can now be clicked anywhere and it will
display the color present there.
• The user Clicks on the image anywhere of whose color he wants to know.
• When the user double clicks anywhere he gets the color name along with their R, G, B values.
Implementation:
Step-1 :
Install Python-OpenCV To implement this project.
Step-2:
8
First import all the required modules.
Step-3:
Then we read the Image File.
Step-4:
We have colors.csv which has all the encodings of the color as shown below.
9
Figure 5. Encodings of the color
Step-5:
Then we initialize the variables, this part of the code converts them to R,G,B Values.
This R,G,B values are then converted to the color using the data frame that was loaded
previously with the minimum deviation.
10
Figure 7. Conversion into color
11
5. Results / Analysis / Inferences and Conclusion
Results:
The RGB color model giving the accuracy that it is leads to believe that the other color models as well
may have a wing of accuracy. Further research has revealed a neat difference in the color models, which
have been discussed below. All work on how color is viewed by a computer and given the fact that
today’s world is filled with their desired data, none of the color models can be shunned. We can only
depend on accuracy of actual color / data viewed by human eyes since the constraints of computer vision
lie in the pixel quality of the hardware it is subject to.
12
Figure 11. Identifying the color Orange
A. Analysis:
Color detection using OpenCV, allows detection of specific color in an image. In this
OpenCV detection system read the image, scan the object, match the color and give the
result. If the Color is matched with a defined color pattern by RGB color model then the
system gets the correct output as a result. This design can be used for various application
based upon vision through computer for the purpose of identifying, differentiating and
collection of various objects are done based upon color, shape and size which are the
primary factors. This can be done with help of an OpenCV.
B. Inferences:
We defined to get the required color field from an RGB image. In this various step are
implemented using OpenCV platform. The main positive point of this method is its color
differentiation of a mono color. The detection of the edge detection techniques has different other
applications like facial detection, color conversion for grey scale image etc. that can also be
implemented.
C. Conclusion:
Detecting colors with our physical eyes is always difficult in the sense that some colors
resemble one another. Also, Color vision deficiency is commonly known as color blind,
is a type of vision defect in our eyeball. The inability to recognize color has caused
several problems to the patient daily life and in conducting certain color oriented
activities. Color detecting system makes it easier and simple when detecting colors. This
system was design in a way that it will automatically get the name of the color by
clicking on them.
13
6. Suggestions / Recommendations for Improvement to Industry
A. Suggestions:
In existing system there is no exact color representation of colors with accuracy. In proposed
system, we are introducing the CV datasets and according to it the number of shades that can
be identified using 865 color names along with their RGB and hex values. Whenever the
cursor clicks the image, it automatically shows the RGB shades color values. Proposed
system uses OpenCV for sorting of primary colors.
7. Reference
[1] Reetu Awasthiand Khushboo Khurana, “Techniques for Object Recognition in Images and Multi-
Object Detection”,(IJARCET), ISSN:2278-1323,4th , April 2013.
[2] Artificial Intelligence. https://en.wikipedia.org/wiki/Artificial_intelligence
[3] Computer Vision. (December 2017). https://en.wikipedia.org/wiki/Computer_vision
[4] Computer Vision’s Open Source. https://en.wikipedia.org/wiki/OpenCV
[5] Object Detection. http://en.m.wikipedia.org/wiki/Object_detection
[6] Numpy.org, 2017. http://www.numpy.org [7] https://www.invensis.net/blog/it/benefits-of-python
overother-programming-languages/
14
8. Appendix
Checklist
304199: Internship (TE E&Tc 2019 Course)
Student Name:
Signature:
15
B. Student Request/Permission Letter for Internship (if available) scan copy [NA]
E. Feedback from internship supervisor (External and Internal) with following recommended
parameters through a email or letter:[ ]
a. Technical knowledge
b. Discipline
c. Punctuality
d. Commitment
e. Willingness to do the work
f. Communication skill
g. Individual work
h. Team work
i. Leadership
16
Figure 13.Allotment Of Badge
17