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

1 view (last 30 days)
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 Comments
Walter Roberson
Walter Roberson on 13 Apr 2019
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 on 14 Apr 2019
Edited: Gobert on 14 Apr 2019
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')').

Sign in to comment.

Answers (1)

Image Analyst
Image Analyst on 13 Apr 2019
It's most likely a hardware issue.
See the FAQ: FAQ
  2 Comments
Image Analyst
Image Analyst on 14 Apr 2019
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.

Sign in to comment.

Products


Release

R2018a

Community Treasure Hunt

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

Start Hunting!