By using computervision toolbox I'm trying to play a video in MATLAB using this code, but only one frame is displayed on the window
조회 수: 1 (최근 30일)
이전 댓글 표시
a = vision.VideoFileReader('spur gear.avi' , 'VideoOutputDataType', 'double');
while ~isDone(a)
vidFrame = step(a);
c = imresize(vidFrame, 0.5);
imshow(c);
end
release(a);
댓글 수: 0
답변 (1개)
Turlough Hughes
2020년 2월 28일
You could do the following:
a = vision.VideoFileReader('spur gear.avi' , 'VideoOutputDataType', 'double');
VideoPlayer = vision.VideoPlayer
while ~isDone(a)
vidFrame = step(a);
c = imresize(vidFrame, 0.5);
step(VideoPlayer,c)
end
release(VideoPlayer);
release(a);
댓글 수: 0
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!