Info

This question is closed. Reopen it to edit or answer.

Why can't I get the output while using 'webcam' command?

1 view (last 30 days)
I have connected a webcam to my computer and try to get snapshot from matlab. I viewed my webcam by typing 'webcamlist' in the command window and get the output 'USB Video Device' But while typing only 'webcam' it shows error- " Error getting the current Media Type". I know its a simple error but I can't cope with it. However, I am using matlab R2014a and have installed image acquisition toolbox already. Please help me
  1 Comment
Geoff Hayes
Geoff Hayes on 22 Jul 2014
Please include the error message that you observe when you invoke the webcam command. As well, please include the line of code that raises this error.

Answers (1)

Image Analyst
Image Analyst on 22 Jul 2014
Do you want to use the Image Acquisition Toolbox, or the Webcam Support Package to do this?

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!