Thank you sir for your kind help...but now if I want to capture an image at evey 35sec so what changes needs to be done in this code...?
How i can obtain image from web cam at regular time interval to do real time processing
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
I am using following code to capture images
clc
2 comentarios
Image Analyst
el 5 de Feb. de 2014
did you try ...'Period',35); ????? Seems like the obvious thing to try.
Respuestas (1)
Shivaputra Narke
el 4 de Feb. de 2014
Editada: Walter Roberson
el 4 de Feb. de 2014
Try to use following code
function VideoDemo
global indx
global vHandle
vHandle=videoinput('winvideo');
start(vHandle);
indx=1;
showTimer=timer('timerFcn',@timefcn);
set(showTimer,'ExecutionMode','fixedRate','Period',5);
start(showTimer)
function timefcn(varargin)
global vHandle
imshow(getsnapshot(vHandle));
drawnow;
0 comentarios
Ver también
Categorías
Más información sobre Image Acquisition Support Packages for Hardware Adaptors (Generic Video Interface) en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!