myfirstgitrepo/heartrate/imageextract.m

12 lines
184 B
Matlab

v = VideoReader('code.avi');
n = 1;
while hasFrame(v)
img = readFrame(v);
imgw= imwrite(img,strcat('image',num2str(n),'.png'));
imr = imread(imgw)
n = n+1
end
n=n-1;