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

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'?

Respuestas (2)

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.
try using snapshot instead of getsnapshot it worked with me

Categorías

Más información sobre Computer Vision Toolbox en Centro de ayuda y File Exchange.

Preguntada:

el 20 de Ag. de 2014

Respondida:

el 11 de En. de 2018

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by