How to close the webcam after the image has been captured?
20 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaire
Réponses (2)
Nithin Banka
le 5 Juin 2018
Modifié(e) : Nithin Banka
le 5 Juin 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 commentaires
Johan Sebastian
le 13 Mai 2023
clear all
1 commentaire
bob pang
le 22 Mai 2023
this line can't release webcam:
clear camObject;
you should use :
clear all
Voir également
Catégories
En savoir plus sur Image Acquisition Support Packages for Hardware Adaptors (Generic Video Interface) dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!