Code covered by the BSD License  

Highlights from
Simple demo program for color based tracking

5.0

5.0 | 1 rating Rate this file 27 Downloads (last 30 days) File Size: 2.61 KB File ID: #31463
image thumbnail

Simple demo program for color based tracking

by Prakash Manandhar

 

16 May 2011

Simple script to read a video file and track a single red marker in 2D using hue and saturation.

| Watch this File

File Information
Description

Simple script to read a video file and track a single red marker in 2D using the hue and saturation values. The largest red blob is detected and the mean co-ordinate position of this blob is tracked. This code does not have any tracking built-in: it treats each frame independently.

This assumes that the video is a constant frame rate video. The resulting co-ordinate time series are stored in the variables: t, Xc and Yc.

Download from http://www.youtube.com/watch?v=Thnv0IQqXFE
for a sample video on which this program was tested.

Required Products Image Processing Toolbox
Computer Vision System Toolbox
MATLAB release MATLAB 7.11 (2010b)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (2)
08 Jun 2011 anju

Hi Prakash,

Would you be able to help on me on the matlab coding for the object tracking of the using Hue value ? As i am new to matlab i couldnt find much details on it .

My object is to perform color calibration in order to define the upper and lower limit of the HUE value for to detect the color at any light intensity .

03 Apr 2012 Mr Smart  
Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
image processing Prakash Manandhar 16 May 2011 15:50:58
color based tracking Prakash Manandhar 16 May 2011 15:50:58

Contact us at files@mathworks.com