我有一个问题:我有2个轴。一个用于预览,另一个用于测试(do st)。 当我捕获1个图像进行测试(失去5秒)时,屏幕预览被停止等待5秒后继续测试... 我想相机不要停下来。有谁能够帮我 ?提前谢谢!
vid = videoinput('winvideo', 1, 'YUY2_640x480');
vid.FramesPerTrigger = 1;
vid.ReturnedColorspace = 'rgb';
triggerconfig(vid, 'manual');
vidRes = get(vid, 'VideoResolution');
imWidth = vidRes(1);
imHeight = vidRes(2);
nBands = get(vid, 'NumberOfBands');
hImage = image(zeros(imHeight, imWidth, nBands), 'parent', handles.axes2);
preview(vid, hImage);
start(vid);% video is started
while(1)
g=getsnapshot(vid); %get current frame
%- Testing lost 5 secs
end