How i can obtain image from web cam at regular time interval to do real time processing
显示 更早的评论
I am using following code to capture images
clc
2 个评论
anis altaf
2014-2-5
编辑:anis altaf
2014-2-5
Image Analyst
2014-2-5
did you try ...'Period',35); ????? Seems like the obvious thing to try.
回答(1 个)
Shivaputra Narke
2014-2-4
编辑:Walter Roberson
2014-2-4
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;
类别
在 帮助中心 和 File Exchange 中查找有关 Image Preview and Device Configuration 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!