Can Anybody Please tell me how to capture an image in MATLAB after every pre-determined delay from the web-cam? Its really important please help.
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Its for my final year project, I have to take an image from my USB webcam every 5 seconds and display it in MATLAB. The image is then to be processed in MATLAB . So any body knows a bit about it, please reply...
0 Kommentare
Akzeptierte Antwort
David Sanchez
am 8 Aug. 2013
you need to use the built-in function getsnapshot:
obj = videoinput('matrox', 1);
while 1 % endless loos
%Acquire and display a single frame of data.
frame = getsnapshot(obj); % take an image
image(frame); % show the image
pause(5); % wait for 5 seconds
end
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Matrox Hardware finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!