How do i put time for camera to take a picture?

4 次查看(过去 30 天)
I want to take a picture after a certain amount of time; I want the camera to get a snapshot after 10 sec I turn it on.Is there a way to do that?
vid=videoinput('winvideo');
start(vid)
I=getsnapshot(vid);
imshow(I)
stop(vid)

回答(1 个)

Ashmil Mohammed
Ashmil Mohammed 2015-7-8
You may use the pause() function after the start(vid) statement.
  2 个评论
Akif Harun BATUR
Akif Harun BATUR 2015-7-8
编辑:Akif Harun BATUR 2015-7-8
But is there a way to put certain amount of time after turning on the camera? Because I dont wanna trigger the button myself again I want camera to do it automatcially.
Ashmil Mohammed
Ashmil Mohammed 2015-7-8
do you mean that camera should be triggered on automatically after some time?

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 MATLAB Support Package for USB Webcams 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by