HOW can i find number of frames using vision.VideoFileReader?
1 view (last 30 days)
Show older comments
syhem samti on 17 Nov 2015
Commented: Saffana Siddiqua on 10 Dec 2019
i didn't find a way to determiner number of frames using vision.VideoFileReader...any idea?
Dinesh Iyer on 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;
numFrames = numFrames + 1;
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.
Find more on Computer Vision With Simulink in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!