フィルターのクリア

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

21 ビュー (過去 30 日間)
Devyani  Parate
Devyani Parate 2018 年 1 月 12 日
コメント済み: bob pang 2023 年 5 月 22 日
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
  1 件のコメント
bob pang
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!

Translated by