How to close the webcam after the image has been captured?
조회 수: 27 (최근 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!