MATLAB Answers


Webcam cannot be disconnected

Asked by Beril Sirmacek on 15 May 2018
Latest activity Commented on by Star Strider
on 23 May 2018
After the camera variable is defined and used as below;
camera = webcam;
picture = camera.snapshot;
I use;
clear camera
However deleting the structure of course doesn't disconnect the webcam.
How can I officially stop image acquisition and disconnect the webcam?


Sign in to comment.


1 Answer

Answer by Star Strider
on 15 May 2018

Try the function version:
That is in the documentation as step 8 in: Acquire Webcam Images (link).


Star Strider
on 22 May 2018
I have no idea.
Can you turn it on and off outside of MATLAB? That may be one way of isolating the problem.
Yes, I can turn it on and off with other software which reaches to webcam.
Star Strider
on 23 May 2018
Then request help from MathWorks. Use the Contact Us link in the upper right corner of this page.
Run the ver command from your Command Window first. Then copy and paste the results to the appropriate window.

Sign in to comment.