Record video from webcam

v = videoinput ( "winvideo" , "1" , "MJPG_640x480" ) ;
v.SelectedSourceName = "input1";
src_v = getselectedsource(v);
get(src_v)
preview(v)
frame = getsnapshot(v)
Error using imaqdevice/getsnapshot
A timeout occurred during GETSNAPSHOT.

1 comentario

Amir Azadeh Ranjbar
Amir Azadeh Ranjbar el 7 de Sept. de 2022
I can not execute these commands
And I get the following error message

Iniciar sesión para comentar.

Respuestas (0)

Preguntada:

el 7 de Sept. de 2022

Comentada:

el 7 de Sept. de 2022

Community Treasure Hunt

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

Start Hunting!

Translated by