Thank you to everyone that answered the survey from my last post. I will be processing the results and reporting in my next post.
Changes are already being planned based on the results.
This three minute video shows you how to view product demos in the Video and Image Processing blockset. Motion detection and tracking is covered in the first demo and photo mosaicking from video is covered in the second.
ok, that is really cool. But is there any possibility to do this in real time using data aquisition? how to aquire data from usb web cam?
best regards!
Simon
With the Image Acquisition Toolbox, you can acquire images or video into Simulink and/or MATLAB. For Simulink, you would use the “From Video Device” block. This supports USB web cameras, as well as a broad range of frame grabbers and scientific digital cameras. For more information on the supported hardware, look here: http://www.mathworks.com/products/imaq/supportedio.html
i’m a beginner. I want to read/call video (.avi) file in MATLAB but i couldn’t find any function. how to call the video (.avi) in matlab? how to extract the video frame by frame?
Hi.
I’m a beginer in Matlab and since three months ago I started working with video files. With the image processing toolbox and image acquisition toolbox I can select my frames and process some analysis, however I’m planning to execute an event depending on what happens in the video (tracking objects). This event is to output a signal for triggering an external device. Could someone give me an idea of how to do this? Thanks a lot.
I think you need to be more specific with your question.
What do you mean by “executing an event” This makes me think of either callbacks or Simulink/Stateflow.
You want this event to trigger and external device. Do you know how to trigger the external advice in MATLAB? Are you trying to work in “hard real time”?
Doug
Leave a Reply
About
Doug Hull is a proud MathWorker who is on a mission to help you with MATLAB.
ok, that is really cool. But is there any possibility to do this in real time using data aquisition? how to aquire data from usb web cam?
best regards!
Simon
Hi Szymon,
With the Image Acquisition Toolbox, you can acquire images or video into Simulink and/or MATLAB. For Simulink, you would use the “From Video Device” block. This supports USB web cameras, as well as a broad range of frame grabbers and scientific digital cameras. For more information on the supported hardware, look here: http://www.mathworks.com/products/imaq/supportedio.html
- Bruce
Thank you Bruce!
That was very helpful!
hi,i’m using MATLAB 7.0.
i’m a beginner. I want to read/call video (.avi) file in MATLAB but i couldn’t find any function. how to call the video (.avi) in matlab? how to extract the video frame by frame?
thanks
Elya -
In v7.0, try aviread. This has straightforward syntax for reading a single frame - you could just embed in a for loop if that’s appropriate.
Readers with newer versions should check out mmreader - introduced on Windows in R2007b, Mac in R2008a.
- scott
Hi.
I’m a beginer in Matlab and since three months ago I started working with video files. With the image processing toolbox and image acquisition toolbox I can select my frames and process some analysis, however I’m planning to execute an event depending on what happens in the video (tracking objects). This event is to output a signal for triggering an external device. Could someone give me an idea of how to do this? Thanks a lot.
jhon,
I think you need to be more specific with your question.
What do you mean by “executing an event” This makes me think of either callbacks or Simulink/Stateflow.
You want this event to trigger and external device. Do you know how to trigger the external advice in MATLAB? Are you trying to work in “hard real time”?
Doug