0

How do you take a live video feed from a webcam and selectively extract frames of it? Do I need a special toolbox or can this be done through normal matlab functions?

I have the image acquisition toolbox, but haven't seen a good way to use it for this yet...

mugetsu
  • 4,228
  • 9
  • 50
  • 79

2 Answers2

0
  1. make sure that the webcam is properly installed and connected.
  2. type the following code:

    obj = videoinput('winvideo', 1);
    preview(obj)
    

this shall generate a window capturing live video input.

andrewsi
  • 10,807
  • 132
  • 35
  • 51
0

The image acquisition toolbox is all you need. Just look at the documentation and it should be pretty straight forward.

Ghaul
  • 3,340
  • 1
  • 19
  • 24