Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

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

  1. Mar 13, 2008 #1
    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
     
  2. jcsd
  3. Mar 13, 2008 #2
    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!
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Have something to add?



Similar Discussions: How to capture live video/image using Matlab without Image acq toolbox
Loading...