how to convert video to image
Show older comments
i want to know the command that can help me to convert video frame into image to image processing this image and detect the required extracted features and locate the object
5 Comments
Hans123
on 15 Apr 2019
This question was previously asked and answered well.
saeed ahmed
on 15 Apr 2019
Kevin Chng
on 16 Apr 2019
Hi, it is depend on your algorithm, the answer in the link will transform your video into a series of image.
The imwrite will generate the series of images in your current path.
Definitely, you may write an algorthm to transform selected frame to image when you pause.
saeed ahmed
on 16 Apr 2019
saeed ahmed
on 16 Apr 2019
Accepted Answer
More Answers (1)
KSSV
on 16 Apr 2019
vidObj = VideoReader('C:\Users\Public\Videos\Sample Videos\Wildlife.wmv');
numFrames = 0;
iwant = cell([],1) ;
while hasFrame(vidObj)
F = readFrame(vidObj);
numFrames = numFrames + 1;
imagesc(F)
drawnow
iwant{numFrames} = F ;
end
YOu can access the respective images of frame using iwant{i}.
Categories
Find more on Image Acquisition Support Packages for Hardware Adaptors (Generic Video Interface) in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!