webcam not closing properly
5 次查看(过去 30 天)
显示 更早的评论
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 个评论
Ramin Mammadzada
2017-10-14
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.
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Image Acquisition Support Packages for Hardware Adaptors (Generic Video Interface) 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!