Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
Import images from a camera

Subject: Import images from a camera

From: Tim Maguire

Date: 26 Sep, 2009 17:37:02

Message: 1 of 2

Is there a way, in real time, to import pictures from a camera connected to a computer, say through a USB port.

Thank you.

Subject: Import images from a camera

From: Dave Brackett

Date: 26 Sep, 2009 22:32:00

Message: 2 of 2

"Tim Maguire" <tim.maguire25@gmail.com> wrote in message <h9ljfu$ppu$1@fred.mathworks.com>...
> Is there a way, in real time, to import pictures from a camera connected to a computer, say through a USB port.
>
> Thank you.

yes, put something like this in a loop. specifics depend on your hardware and requirements. imaqhwinfo may be useful.

video_input=videoinput('winvideo')
preview(video_input)
video_snapshot=getsnapshot(video_input)
etc.

you may find these file exchange submissions useful:
http://www.mathworks.com/matlabcentral/fileexchange/?term=webcam

Tags for this Thread

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us