how to define 'getsnapshot' for input arguments of type 'vision.Vi​deoFileRea​der'?

1 view (last 30 days)
vobj = vision.VideoFileReader(filename, 'ImageColorSpace', 'RGB');
v = getsnapshot(vobj);
and then i got this message :
Undefined function 'getsnapshot' for
input arguments of type
'vision.VideoFileReader'.
how to define that 'getsnapshot' for input argument of type 'vision.videofilereader'?

Answers (2)

Dima Lisin
Dima Lisin on 4 Sep 2014
Use this:
v = step(vobj)
The vision.VideoFileReader object does not have a getsnapshot method. Instead, you can read the next video frame using the step method.

michael nabil
michael nabil on 11 Jan 2018
try using snapshot instead of getsnapshot it worked with me

Categories

Find more on Image Processing and Computer Vision 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!