please any help to CHANGE THIS CODE to acquire one gray image per 3 minute
Mostra commenti meno recenti
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);
Risposte (2)
Mahdi
il 3 Apr 2013
0 voti
Change the pause line to pause(180). It reads it in seconds.
4 Commenti
mangood UK
il 3 Apr 2013
Walter Roberson
il 3 Apr 2013
FramesPerTrigger 1
ReturnedColorspace grayscale
Mahdi
il 3 Apr 2013
Thanks Walter, I must be tired. I didn't notice the other questions.
mangood UK
il 3 Apr 2013
mangood UK
il 3 Apr 2013
0 voti
2 Commenti
Walter Roberson
il 4 Apr 2013
Please show us the output of
devinfo = imaqhwinfo('winvideo', 1);
devinfo.SupportedFormats
mangood UK
il 6 Apr 2013
Categorie
Scopri di più su Video Formats and Interfaces in Centro assistenza e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!