webcam not closing properly

3 visualizaciones (últimos 30 días)
Rashmil Dahanayake
Rashmil Dahanayake el 6 de Oct. de 2014
Comentada: Ramin Mammadzada el 14 de Oct. de 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;
preview(mycam)
closePreview(mycam)
img = snapshot(mycam);
imagesc(img)
delete(mycam)
clear all
I'm using matlab 2014b on win7. Is there another command to release/reset the webcam.
  3 comentarios
Star Strider
Star Strider el 12 de Oct. de 2014
Noted.
I deleted my Answer.
Ramin Mammadzada
Ramin Mammadzada el 14 de Oct. de 2017
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.

Iniciar sesión para comentar.

Respuestas (0)

Etiquetas

Productos

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by