image capture

1 次查看(过去 30 天)
Anand Abhishek Singh
1. f=videoinput('winvideo',1); >> frame = getsnapshot(f); >> imshow(frame);
this code capture image from webcam.the on time of webcam is very small.how to increase the duration of webcam.
  1 个评论
Mark Jones
Mark Jones 2011-3-2
Hi Anand,
I'd like to see if I can help you. Can you clarify your question?
Also, have you looked through the examples in the documentation?
http://www.mathworks.com/help/toolbox/imaq/exampleindex.html
Are any of them helpful?
Mark

请先登录,再进行评论。

回答(1 个)

matar maoz
matar maoz 2011-3-2
you can try wait()
another thint you can do is to put a trigger, like : k=waitforbuttonpress
if you dont need the code to be in one part' you can seperate 'getsnapshot' from the rest of your code by double precent %%
Matar

类别

Help CenterFile Exchange 中查找有关 Image Processing Toolbox 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by