matlab如何创建一个视频预览

如何创建一个视频预览

obj = videoinput('winvideo',1,'MJPG_640x480');
vidRes = obj.VideoResolution; 
nBands = obj.NumberOfBands; 
hImage = image( zeros(vidRes(2), vidRes(1), nBands) ); 
preview(obj, hImage); 
posted @ 2020-05-01 10:58  盐亭的森林  阅读(218)  评论(0编辑  收藏  举报