advice on Image acquisition & near real time processing

조회 수: 1 (최근 30일)
Yale Brewer
Yale Brewer 2015년 2월 8일
댓글: Yale Brewer 2015년 2월 8일
Hi,
I have just started getting back into Matlab, perhaps rather at the deep end!
I am trying to use a webcam to log at 30fps, 10 frames before processing the 10 frames using optical flow to estimate velocity of the object passing through the frame; before flushing all the data and repeating the process.
I have successfully managed to acquire frames to avi file and then extract the frames to tiff format.
The real question: Is there a better (read quicker way) of acquiring the 10 frames from the video device, saving them to memory and processing them within Matlab without saving to disk (clearly the saving and converting just adds complexity and computational time).
Thank you in advance!

답변 (2개)

Erik S.
Erik S. 2015년 2월 8일
  댓글 수: 1
Yale Brewer
Yale Brewer 2015년 2월 8일
Thank you! Certainly a step in the right direction! It may sound stupid, but I forgot all about the in-built examples in the matlab help!
I was going to try and steer away from Simulink though, never really having had that much to do with it before, but might have to have a look into it!

댓글을 달려면 로그인하십시오.


Erik S.
Erik S. 2015년 2월 8일
Hi Yale,
Do you have Image Acquisition toolbox? There is a function (Matlab) called: imaq.VideoDevice Look in the documentations for it. Using this function it would be possible to stream live video I think. I think you can process it as well.
  댓글 수: 1
Yale Brewer
Yale Brewer 2015년 2월 8일
Yes, indeed I have Imaq toolbox, it is this I have been playing around with thus far - I think I will slow the whole lot down first: ideally the whole thing would happen online, but to start with I think it will have to be a "discrete" point based system for simplicity, before optimising it for real-time processing. I may have a go with Simulink in the mean time. Thank you!

댓글을 달려면 로그인하십시오.

Community Treasure Hunt

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

Start Hunting!

Translated by