how to convert a video into frames in MATLAB????

Answers (2)

vidObj = VideoReader('C:\Users\Public\Videos\Sample Videos\Wildlife.wmv');
numFrames = 0;
while hasFrame(vidObj)
F = readFrame(vidObj);
numFrames = numFrames + 1;
imagesc(F)
drawnow
end
numFrames
Rather than using hasFrame in VideoReader which is more suitable in mmreader??

Asked:

on 10 Aug 2018

Answered:

on 20 Oct 2019

Community Treasure Hunt

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

Start Hunting!