how to define 'getsnapshot' for input arguments of type 'vision.VideoFileReader'?
1 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(2 个)
Dima Lisin
2014-9-4
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 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 GigE Vision Hardware 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!