MATLAB Answers


webcam not closing properly

Asked by Rashmil Dahanayake on 6 Oct 2014
Latest activity Commented on by Ramin Mammadzada on 14 Oct 2017
I'm using webcam() to acquire few images. I managed to get it working and export images in png format. However after the usage I can't reuse the webcam. (both internal and external to matlab) Either I have to restart matlab or reconnect the usb to get this fixed. I tried clear all, delete(mycam) options still the problem persists.
mycam = webcam;
img = snapshot(mycam);
clear all
I'm using matlab 2014b on win7. Is there another command to release/reset the webcam.


Update: As per mathworks technical support team, this is a bug.
Star Strider
on 12 Oct 2014
I deleted my Answer.
I have also encountered this kind of problem today. Just write "clear". It will delete all instances of the camera too, so the problem will be solved.

Sign in to comment.


0 Answers