please any help to CHANGE THIS CODE to acquire one gray image per 3 minute
이전 댓글 표시
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);
답변 (2개)
Mahdi
2013년 4월 3일
0 개 추천
Change the pause line to pause(180). It reads it in seconds.
댓글 수: 4
mangood UK
2013년 4월 3일
Walter Roberson
2013년 4월 3일
FramesPerTrigger 1
ReturnedColorspace grayscale
Mahdi
2013년 4월 3일
Thanks Walter, I must be tired. I didn't notice the other questions.
mangood UK
2013년 4월 3일
mangood UK
2013년 4월 3일
0 개 추천
댓글 수: 2
Walter Roberson
2013년 4월 4일
Please show us the output of
devinfo = imaqhwinfo('winvideo', 1);
devinfo.SupportedFormats
mangood UK
2013년 4월 6일
카테고리
도움말 센터 및 File Exchange에서 Video Formats and Interfaces에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!