Clear Filters
Clear Filters

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

20 views (last 30 days)
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.

Answers (2)

Nithin Banka
Nithin Banka on 5 Jun 2018
Edited: Nithin Banka on 5 Jun 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 on 13 May 2023
clear all

Tags

Community Treasure Hunt

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

Start Hunting!