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!