Capturing images from webcam every 1s.
Mostrar comentarios más antiguos
I have a question.I want to use webcam to localize my mobile robot.So I must capture an image every 1s to analyse.Can you tell me how can I do that.
Respuestas (1)
Soyeun Jung
el 7 de Ag. de 2017
Hi Nghia,
You can use the pause() function in a for loop to capture the image every second. Here is an example:
w = webcam;
while true % run for indefinitely long time
img = w.snapshot;
imshow(img) % display the image
pause(1); % pause for one second
end
1 comentario
saeeda saher
el 24 de Abr. de 2019
how to save the snapshots in form of image in folder?
Categorías
Más información sobre Startup and Shutdown en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!