there are 66 video frames in video11.avi .... i wana save each video frames in folder videoframes........What is problem over there ? this code is not proper saving each video frame in specific folder

조회 수: 1 (최근 30일)
obj = mmreader('video11.avi');
numFrames = get(readerobj, 'NumberOfFrames');
for k = 1 : numFrames %fill in the appropriate number
this_frame = read(obj, k);
figure,imshow(this_frame)
title(sprintf('Frame #%d', k))
baseFileName ='this_frame.jpg';
folder = 'C:\Users\Moniba Ghafoor\Documents\MATLAB\videoframes';
fullFileName = fullfile(folder, baseFileName);
imwrite(this_frame,fullFileName);
end

채택된 답변

Walter Roberson
Walter Roberson 2013년 5월 4일
baseFileName = sprintf('this_frame_%03d.jpg', k);
  댓글 수: 4
moniba qureshi
moniba qureshi 2013년 5월 11일
im using matlab matlab 7.8.0(R2009a) ......... can i use vision system toolbox?
Image Analyst
Image Analyst 2013년 5월 11일
I don't think toolboxes are sold for older versions. If you want to add a new toolbox to your collection, then I think you'll need to upgrade to the current version. Anyway, even if they did, I don't believe that toolbox supported that version since I think it was released after March 2009, though I'm not sure.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Computer Vision Toolbox에 대해 자세히 알아보기

태그

아직 태그를 입력하지 않았습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by