Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
193 views

Object Tracking Using Color Object

This document describes a system for tracking an object using color detection and controlling mouse cursor movement based on the object's position. The system captures video using a webcam, processes each frame to detect colors, finds the detected object's centroid coordinates, and uses those coordinates to move the mouse cursor in real-time, thereby tracking the object's movement. Key steps include capturing video, detecting colors, converting images to binary, finding centroids, and using centroids to track the mouse pointer. The system was implemented in MATLAB for potential applications in computer graphics and gaming.

Uploaded by

sunil rathore
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)
193 views

Object Tracking Using Color Object

This document describes a system for tracking an object using color detection and controlling mouse cursor movement based on the object's position. The system captures video using a webcam, processes each frame to detect colors, finds the detected object's centroid coordinates, and uses those coordinates to move the mouse cursor in real-time, thereby tracking the object's movement. Key steps include capturing video, detecting colors, converting images to binary, finding centroids, and using centroids to track the mouse pointer. The system was implemented in MATLAB for potential applications in computer graphics and gaming.

Uploaded by

sunil rathore
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/ 12

OBJECT TRACKING

USING COLOR
OBJECT

INTRODUCTION TO THE SYSTEM


In our work, we have tried to control mouse

cursor movement and click events using a


camera based on color detection technique.
Here real time video has been captured using
a Web-Camera.
The user wears colored tapes to provide
information to the system.

INTRODUCTION TO THE SYSTEM


Individual frames of the video are separately

processed.
The processing techniques involve an image
subtraction algorithm to detect colors.
Once the colors are detected the system
performs various operations to track the
cursor and performs control actions

SYSTEM DESCRIPTION
1. Capturing real time video using Web2.
3.
4.

5.

Camera.
Processing the individual image frame.
Conversion of each frame to a grey scale
image.
Color detection and extraction of the
different colors (RGB) from gray scale
image.
Conversion of the detected image into a
binary image.

SYSTEM DESCRIPTION
Finding the region of the image and
calculating its centroid.
7. Tracking the mouse pointer using the
coordinates obtained from the centroid.
6.

SYSTEM DESCRIPTION

Capturing the real time


video:
Computer Webcam is used to capture the Real

Time Video
Video is divided into Image frames based on
the FPS (Frames per second) of the camera
Processing of individual Frames

Color Detection
The red, green and blue color object is

detected by subtracting the color suppressed


channel from the Gray-Scale Image.
This creates an image which contains the
detected object as a patch of grey surrounded
by black space.

Conversion of gray scale Image into


Binary scale Image
The grey region of the image obtained after

subtraction needs to be converted to a binary


image for finding the region of the detected
object
We use a threshold value of 20% to convert the
image to binary image. This means that all the
pixel values lying below 20% of the maximum
pixel value is converted to pure black that is 0
and the rest is converted to white that is 1. Thus
the resultant image obtained is a monochromatic
image consisting of only black and white colors.

Finding Centroid of an object and


plotting
An inbuilt function in MATLAB is used to find

the centroid of the detected region.


The output of function is a matrix consisting
of the X (horizontal) and Y (vertical)
coordinates of the centroid.
These coordinates change with time as the
object moves across the screen.

Tracking the Mouse


pointer
Once the coordinates has been determined,

the mouse driver is accessed and the


coordinates are sent to the cursor.
With these coordinates, the cursor places
itself in the required position.
Each time a new centroid is determined and
for each frame the cursor obtains a new
position, thus creating an effect of tracking.

CONCLUSION
In this project, an object tracking based

virtual mouse application has been developed


and implemented using a webcam.
The system has been implemented in MATLAB
environment using MATLAB Image Processing
Toolbox.
This technology has wide applications in the
fields of computer graphics, computer
gaming.

You might also like