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

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)

Antworten (1)

Ashmil Mohammed
Ashmil Mohammed am 8 Jul. 2015

0 Stimmen

You may use the pause() function after the start(vid) statement.

2 Kommentare

Akif Harun BATUR
Akif Harun BATUR am 8 Jul. 2015
Bearbeitet: Akif Harun BATUR am 8 Jul. 2015
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.
do you mean that camera should be triggered on automatically after some time?

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu MATLAB Support Package for IP Cameras finden Sie in Hilfe-Center und File Exchange

Gefragt:

am 8 Jul. 2015

Kommentiert:

am 8 Jul. 2015

Community Treasure Hunt

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

Start Hunting!

Translated by