problem in splitting video into frames using matlab
조회 수: 1 (최근 30일)
이전 댓글 표시
Here is my code :
video = VideoReader('Engineer.mp4');
NbOfImages = 30;
for img = 1:NbOfImages;
data = read(video, img);
filename=strcat('image',num2str(img),'.jpg');
listOfImages(img) = {filename};
imwrite(data, filename);
end
imageNames = listOfImages';
Works fine on matlab 2013a, but when i try to run it on matlab 2015b it gives me this error :
Error using VideoReader/read (line 160)
The frame index requested is beyond the end of the file.
Error in tp2 (line 9)
data = read(video, img);
댓글 수: 0
답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!