Matlab Image Acquisition

Thanks to Madan!

I learnt Image acquisition using Matlab Image Processing toolbox.

Now I can acquire videos using Matlab tool. My goal is to learn identification of colours from the acquired videos.  For more details, please refer to Mr.Madan’s tutorial on image acquisition.

I have a Logitech Quick Cam Camera installed to my system.  Also, I have Matlab 7.5 installed in its place. To check whether your Matlab tool box has an Image Processing Tool Box, Here is what you have to do:

Bingo! Your Matlab software has the Image Processing Tool Box

Bingo! Your Matlab software has the Image Processing Tool Box

Now type : ‘ imaqhwinfo ‘ in the command window to find the installed video drivers in your PC.

Here is something which you may read:

>> imaqhwinfo
ans =
InstalledAdaptors: {‘coreco’  ‘winvideo’}
MATLABVersion: ‘7.5 (R2007b)’
ToolboxName: ‘Image Acquisition Toolbox’
ToolboxVersion: ‘3.0 (R2007b)’

>> imaqhwinfo

ans =

InstalledAdaptors: {‘coreco’  ‘winvideo’}

MATLABVersion: ‘7.5 (R2007b)’

ToolboxName: ‘Image Acquisition Toolbox’

ToolboxVersion: ‘3.0 (R2007b)’

Now I connect my web cam to the PC and here is what I do to read an image:

1)  Type the adaptor name and resolution of the video.

vid = videoinput(‘winvideo’,1,’RGB24_320x240′);

2) Preview the video using your matlab tool and enjoy by typing the following command

preview(vid);

Acquired video

More image processing tutorials to follow!

Advertisements

One Response to Matlab Image Acquisition

  1. manoj says:

    i am final year student ,i am doing face recognition system ,here i am interfaceing web cam with matalb bt the cam is not takin the snap can you help me on this.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: