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

20 次查看(过去 30 天)
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.

回答(2 个)

Nithin Banka
Nithin Banka 2018-6-5
编辑:Nithin Banka 2018-6-5
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 2023-5-13
clear all

标签

Community Treasure Hunt

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

Start Hunting!

Translated by