I am using vision.videofilereader to read video files,URLs.I am able to access read the videos/URLs using step command.But I am not able to save the read data as images. Is there a way in which frame accessed using step can be saved as image(jpg,png)?

1 view (last 30 days)
I am using vision tool box.I am using vision.videofilereader to read video files,URLs.I am able to access read the videos/URLs using step command.But I am not able to save the read data as images. Is there a way in which frame accessed using step can be saved as image(jpg,png)?
  1 Comment
amit pathania
amit pathania on 21 May 2012
I am able to do this:
hvfr = vision.VideoFileReader('viplanedeparture.avi');
hp = vision.VideoPlayer;
while ~isDone(hvfr)
videoFrame = step(hvfr);
step(hp, videoFrame);
end
release(hp);
release(hvfr);
BUT I WANT TO SAVE VIDEOFRAME AS IMAGE.

Sign in to comment.

Answers (0)

Community Treasure Hunt

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

Start Hunting!