How to close the webcam after the image has been captured?

12 vues (au cours des 30 derniers jours)
Devyani  Parate
Devyani Parate le 12 Jan 2018
Commenté : bob pang le 22 Mai 2023
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.

Réponses (2)

Nithin Banka
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.

Johan Sebastian
Johan Sebastian le 13 Mai 2023
clear all
  1 commentaire
bob pang
bob pang le 22 Mai 2023
this line can't release webcam:
clear camObject;
you should use :
clear all

Connectez-vous pour commenter.

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by