How to close the webcam after the image has been captured?
21 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
My webcam doesn't close after the execution of program. I need to close Matlab each time to close the webcam. I am using Matlab 2017a.
1 comentario
Respuestas (2)
Nithin Banka
el 5 de Jun. de 2018
Editada: Nithin Banka
el 5 de Jun. de 2018
If the webcam object you are using to capture images is say 'camObject' use the below command to close the webcam
clear camObject;
Acquire Images from Webcams - This documentation about acquiring images using webcam might come in handy for your work.
0 comentarios
Johan Sebastian
el 13 de Mayo de 2023
clear all
1 comentario
bob pang
el 22 de Mayo de 2023
this line can't release webcam:
clear camObject;
you should use :
clear all
Ver también
Categorías
Más información sobre Image Acquisition Support Packages for Hardware Adaptors (Generic Video Interface) en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!