How to close the webcam after the image has been captured?
21 ビュー (過去 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
参考
カテゴリ
Help Center および File Exchange で Image Acquisition Support Packages for Hardware Adaptors (Generic Video Interface) についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!