how to define 'getsnapshot' for input arguments of type 'vision.VideoFileReader'?
11 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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'?
0 commentaires
Réponses (2)
Dima Lisin
le 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.
0 commentaires
michael nabil
le 11 Jan 2018
try using snapshot instead of getsnapshot it worked with me
0 commentaires
Voir également
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!