how to convert video to image
3 views (last 30 days)
Show older comments
saeed ahmed
on 15 Apr 2019
Commented: Image Analyst
on 17 Apr 2019
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
Accepted Answer
Image Analyst
on 16 Apr 2019
See my attached demo that will extract all frames, or you can process each frame one at a time.
3 Comments
Image Analyst
on 17 Apr 2019
No. Startup imaqtool and then do a preview. Look in the window for what commands it's doing.
>> imaqtool
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}.
0 Comments
See Also
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!