MATLAB R2018a has stopped working when I try to bring live images from a webcam into Matlab

1 次查看(过去 30 天)
I need your help to find a solution. I am using 'MATLAB R2018a - academic use'. When I try to bring live images from a (laptop built-in) webcam into Matlab, it stops when I run the following code line, in the Matlab command window. Can you please help to find and solve the problem?
cam1 = webcam('HD WebCam')
cam1 =
webcam with properties:
Name: 'HD WebCam'
AvailableResolutions: {'640x480' '160x120' '176x144' '320x240' '352x288' '1280x720'}
Resolution: '640x480'
Here is the message I get before the Matlab stops.
MATLAB R2018a has stopped working: There is a problem, therefore, the program has stopped working properly. Windows will close this program and indicate if a solution is available.
Can you please help?
  2 个评论
Walter Roberson
Walter Roberson 2019-4-13
Does MATLAB produce a crash log?
Question: did you install the Image Acquisition Toolbox Support Package for OS Generic Video Interface ?
Note that built-in cameras are not the same as webcam: webcam are handled by MATLAB Support Package for USB Webcams . It might turn out that you need to install that.
Gobert
Gobert 2019-4-14
编辑:Gobert 2019-4-14
MATLAB did not produce any crash logs. Yes, I installed the 'Image Acquisition Toolbox Support Package for OS Generic Video Interface' as well as 'MATLAB Support Package for USB Webcams' but in vain (it kept stopping every time I ran the 'cam1 = webcam('HD WebCam')').

请先登录,再进行评论。

回答(1 个)

Image Analyst
Image Analyst 2019-4-13
It's most likely a hardware issue.
See the FAQ: FAQ
  2 个评论
Image Analyst
Image Analyst 2019-4-14
The explanation is that none of use are going to set up a webex session with you to drive your computer, nor spend time to research anything we find. We cannot talk to the webcam developers at the company because we don't know who they are. BUT if you do a webex session with the tech support, they CAN do that. They know who the developers are and can actually talk to them and together they can try to figure out your problem. We are just users like you and cannot do that. I know that I just basically repeated what is in the FAQ so you may not explain this comment either, so call tech support and ask them to explain it to you.

请先登录,再进行评论。

产品


版本

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by