How to capture live video/image using Matlab without Image acq toolbox

  • Context: MATLAB 
  • Thread starter Thread starter rsr_life
  • Start date Start date
  • Tags Tags
    Capture Image Matlab
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
1 reply · 48K views
rsr_life
Messages
48
Reaction score
0
Hi!

Does anybody know how i can capture images from my USB camera directly into Matlab? I'd appreciate suggestions for indirect methods too. I don't have the advantage of the Image Acquisition Toolbox in Matlab, making my task slightly more difficult.

Suggestions that I've had include using the Graphedit software to capture and save the images and use Matlab to read images. This is going to be offline though.

Another suggestion is to use C in Matlab and use standard libraries to read the image data through that - this could include processing the images too.

Is there any other method I could use since it seems like a standard task to do?

Thanks
 
Physics news on Phys.org
http://www.mathworks.com/matlabcentral/fileexchange/loadAuthor.do?objectType=author&objectId=1093610"

Ok... got it myself.

For future reference, follow the above link and click on any of the author's contributions - VCAPG2 or its extension for Simulink. Very simple, runs directly without any mess.

For starters, use the last sample code he suggests - to get a bunch of frames for real-time viewing.

Another popular one on the Matlab central exchange is:
http://www.mathworks.com/matlabcentral/fileexchange/loadFile.do?objectId=247"

Couldn't get it to work just as easily though.

Cheers!
 
Last edited by a moderator: