HOW can i find number of frames using vision.VideoFileReader?
Mostra commenti meno recenti
i didn't find a way to determiner number of frames using vision.VideoFileReader...any idea?
Risposte (1)
Dinesh Iyer
il 17 Nov 2015
To use the system object to determine this value, you will have to read through the entire file like this:
vfr = vision.VideoFileReader;
numFrames = 0;
while ~isDone(vfr)
step(vfr);
numFrames = numFrames + 1;
end
The VideoReader object has a property called NumberOfFrames that you can query for this value. Starting R2014b, the doc says that this property is being deprecated. However, its been 3 releases but its still going strong.
Dinesh
1 Commento
Saffana Siddiqua
il 10 Dic 2019
can i get the framerate?
Categorie
Scopri di più su Computer Vision with Simulink 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!