5.0

5.0 | 5 ratings Rate this file 104 Downloads (last 30 days) File Size: 2.15 KB File ID: #40195
image thumbnail

How to Detect and Track White Colored Object in LIVE Video

by

 

06 Feb 2013 (Updated )

This code shows how to detect and track white colored object in LIVE video using MATLAB.

| Watch this File

File Information
Description

This code shows how to detect and track white colored object in LIVE video using MATLAB.
For deteil documentation please refer to:
http://arindambose.com/blog/?p=86

For video tutorial please refer to:
http://youtu.be/okgwdRvwxgw

Required Products Image Acquisition Toolbox
Computer Vision System Toolbox
MATLAB
MATLAB release MATLAB 7.14 (R2012a)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (14)
27 Feb 2014 HD

thanks!

22 Jun 2013 Bobby Satya  
08 Apr 2013 Jenisten Stark

Ya thanks dude. It worked.. :)
Now If need to change the color of the detected white objects into grey color of some other rgb colors format, what should i do???.
Are there any possibilities to do such type of processing. ???

18 Mar 2013 Arindam Bose

@Jenisten Stark: Yes, surely. You have to release the video input handle. In this case put the following line at the end of your code.
release(vidDevice);

18 Mar 2013 Jenisten Stark

one more help dude... My webcam's still on even if i finish running ur code also. so i had to close matlab completely and then again start it fresh...
So is der any command or code to stop this process alone without closing matlab completely..

17 Mar 2013 Emily

Rate this Submission

17 Mar 2013 Jenisten Stark

Matlab R2012a works awsum... !!!
Thank u for ur guidance dude...

04 Mar 2013 erdal  
27 Feb 2013 Arindam Bose

@Jenisten Stark: From R2012a onward Image Acquisition Toolbox handles are prefixed by imaq.. So if you are using R2009 version, try to use videoinput('winvideo',1,'YUY2_640x480')
Probably it will fix the problem.
But still you don't have Computer Vision Toolbox. So its better to upgrade your version.

26 Feb 2013 Jenisten Stark

Thank U For ur reply dude... And Actually, I've got imaq tool box. I used this tool and then only set the video input command to YUY2_640x480 resolution.
But Computer Vision System Toolbox is missing in my version. Is it possible to download that tool box alone or should i change the version for using it??

26 Feb 2013 Arindam Bose

@Jenisten Stark: Its showing the error because in your MATLAB version, 'Image Acquisition Toolbox' is not available. The word 'imaq' stands for 'Image Acquisition Toolbox'.
Probably you don't have 'Computer Vision Toolbox' as well. The word 'vision' stands for it.
These toolbox are included in MATLAB R2012a onward.

26 Feb 2013 Jenisten Stark

I'm using R 2009 version and it shows
following error::::
---------------------------------------
??? Undefined variable "imaq" or class "imaq.VideoDevice".

Error in ==> white at 10
vidDevice = imaq.VideoDevice('winvideo', 1, 'YUY2_640x480', ... %
Acquire input video stream
----------------------------------------
Think some tool boxes are missing in this version.
What tool boxes are required for this program...

11 Feb 2013 Fiem

Nice, Thanks a lot.

11 Feb 2013 Fiem  
Updates
21 Feb 2014

Description Changed

Contact us