필터 지우기
필터 지우기

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