how to acquire each frame from video

7 ビュー (過去 30 日間)
santosh v
santosh v 2015 年 6 月 6 日
コメント済み: Image Analyst 2015 年 6 月 6 日
Hi I am trying to acquire one frame at a time from a video. So I tried this
obj = imaq.VideoDevice('winvideo',1);
load train_data
i = 1;
while i == 1
I = step(obj);
However I don't have the image acquistion toolbox and hence this wont work Is there a way I could rewrite this ?

回答 (3 件)

Image Analyst
Image Analyst 2015 年 6 月 6 日
Use the built-in webcam support: http://www.mathworks.com/support/2014a/matlab/8.3/demos/webcam-support.html. I have not tried it since I have the Image Acquisition Toolbox.
  1 件のコメント
Image Analyst
Image Analyst 2015 年 6 月 6 日
See my attached demo.

サインインしてコメントする。


santosh v
santosh v 2015 年 6 月 6 日
Is it possible for me to rewrite the code so that i can acquire frame by frame from a video. (Not a live one but one saved in the path)

Walter Roberson
Walter Roberson 2015 年 6 月 6 日
Videoreader class

Community Treasure Hunt

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

Start Hunting!

Translated by