COLOR DETECTION
Presented by
Anil Pokhrel
Bsccsit 3 semester
1
Contents
2
 Introduction to c++
 Introduction to color detection in visual studio
 Objective
 Architecture
 Implementation
 Future scope
 Conclusion
Introduction to c++
3
 The basic concepts underlying OOP are:
Class, Object, abstraction, encapsulation,
inheritance, and polymorphism
 Programs are divided into objects.
 Data structures are designed such that they
characterize the objects .
 Functions & data are tied together in the data
structures
Introduction to color detection
using Open CV4
 Open CV is a Computer Vision library developed
by Intel
 It is a collection of C++ classes that implement
popular Image Processing and Computer Vision
algorithms
 It includes filtering, edge detection, corner
detection, sampling and interpolation, color
conversion and color detection
Continue……
5
 Color detection is the most important and
challenging fundamental task of computer
vision
 The easiest way to detect and segment an
object from an image is the color based
methods
 Color is one of the most important
characteristics of an image, if color in a live
video or in a digital image can be detected,
then the results of this detection can be used
Objective
6
 The main objective is to implement the concept of
object oriented programming in C++.
 To implement the theoretical knowledge into a
practical approach
 Here we take a coloured image of 3 channel
(RED,GREEN,BLUE)
 Our aim is to retrieve these values from an image
to determine the color of the pixel
ARCHITECTURE
7
 It aims to provide information about system
architecture and it consists of color detecting
diagrams
 Open CV usually captures images and videos
in 8-bit, BGR format
8
Implementation
9
 We have to calculate 1st order spatial
moments around x-axis and y-axis and the 0th
order central moments of the binary image.
 0th order central moments of the binary image
are equal to the white area of the image in
pixels.
Control of color detection
10
Future scopes and conclusion
11
 Computer vision- Color detection is the basic
and important step for proceeding in computer
vision.
 Object Segregation- An object can be
segregated (separated) on the basis of its
color.
 Object Tracking- A moving object can be
tracked on the basis of its color
References
12
 https://www.opencv-srf.com/2010/09/object-
detection-using-color-seperation.html
 https://www.codeproject.com/Articles/850023/
Color-Based-Object-Detection
13

color detection using open cv

  • 1.
    COLOR DETECTION Presented by AnilPokhrel Bsccsit 3 semester 1
  • 2.
    Contents 2  Introduction toc++  Introduction to color detection in visual studio  Objective  Architecture  Implementation  Future scope  Conclusion
  • 3.
    Introduction to c++ 3 The basic concepts underlying OOP are: Class, Object, abstraction, encapsulation, inheritance, and polymorphism  Programs are divided into objects.  Data structures are designed such that they characterize the objects .  Functions & data are tied together in the data structures
  • 4.
    Introduction to colordetection using Open CV4  Open CV is a Computer Vision library developed by Intel  It is a collection of C++ classes that implement popular Image Processing and Computer Vision algorithms  It includes filtering, edge detection, corner detection, sampling and interpolation, color conversion and color detection
  • 5.
    Continue…… 5  Color detectionis the most important and challenging fundamental task of computer vision  The easiest way to detect and segment an object from an image is the color based methods  Color is one of the most important characteristics of an image, if color in a live video or in a digital image can be detected, then the results of this detection can be used
  • 6.
    Objective 6  The mainobjective is to implement the concept of object oriented programming in C++.  To implement the theoretical knowledge into a practical approach  Here we take a coloured image of 3 channel (RED,GREEN,BLUE)  Our aim is to retrieve these values from an image to determine the color of the pixel
  • 7.
    ARCHITECTURE 7  It aimsto provide information about system architecture and it consists of color detecting diagrams  Open CV usually captures images and videos in 8-bit, BGR format
  • 8.
  • 9.
    Implementation 9  We haveto calculate 1st order spatial moments around x-axis and y-axis and the 0th order central moments of the binary image.  0th order central moments of the binary image are equal to the white area of the image in pixels.
  • 10.
    Control of colordetection 10
  • 11.
    Future scopes andconclusion 11  Computer vision- Color detection is the basic and important step for proceeding in computer vision.  Object Segregation- An object can be segregated (separated) on the basis of its color.  Object Tracking- A moving object can be tracked on the basis of its color
  • 12.
  • 13.