please any help to CHANGE THIS CODE to acquire one gray image per 3 minute
1 次查看(过去 30 天)
显示 更早的评论
hi i have this code that take video and many frame
all what i want is to take one gray image and one frame only avery 3 minute
imaqreset;
obj = videoinput('winvideo',1,'YUY2_640x480');
% triggerconfig(obj,'manual');
set(obj,'FramesPerTrigger',Inf);
set(obj,'ReturnedColorspace','RGB');
obj.FrameGrabInterval = 1;
framesneed = 1;
start(obj);
while(obj.FramesAcquired<=framesneed)
RGB2=getsnapshot(obj);
imshow(RGB2);
pause(3);
end
stop(obj);
delete(obj);
0 个评论
回答(2 个)
mangood UK
2013-4-3
2 个评论
Walter Roberson
2013-4-4
Please show us the output of
devinfo = imaqhwinfo('winvideo', 1);
devinfo.SupportedFormats
另请参阅
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!