how to convert video to image
Mostra commenti meno recenti
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 Commenti
Hans123
il 15 Apr 2019
This question was previously asked and answered well.
saeed ahmed
il 15 Apr 2019
Kevin Chng
il 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
il 16 Apr 2019
saeed ahmed
il 16 Apr 2019
Risposta accettata
Più risposte (1)
KSSV
il 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}.
Categorie
Scopri di più su Image Acquisition Support Packages for Hardware Adaptors (Generic Video Interface) in Centro assistenza e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!