matlab如何创建一个视频预览
如何创建一个视频预览
obj = videoinput('winvideo',1,'MJPG_640x480');
vidRes = obj.VideoResolution;
nBands = obj.NumberOfBands;
hImage = image( zeros(vidRes(2), vidRes(1), nBands) );
preview(obj, hImage);
obj = videoinput('winvideo',1,'MJPG_640x480');
vidRes = obj.VideoResolution;
nBands = obj.NumberOfBands;
hImage = image( zeros(vidRes(2), vidRes(1), nBands) );
preview(obj, hImage);