How to close the webcam after the image has been captured?
13 次查看(过去 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
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.
0 个评论
Johan Sebastian
2023-5-13
clear all
1 个评论
bob pang
2023-5-22
this line can't release webcam:
clear camObject;
you should use :
clear all
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!