Cannot Connect my Camera in MATLAB 2017B

2 次查看(过去 30 天)
Hello.
I am currently having a problem registering two endoscopes I have connected and recognized by MATLAB. When I run webcamlist I can see that both cameras are connected. However, when I try to assign the camera to a variable I receive this error.
Warning: The following error was caught while executing 'matlab.webcam.internal.WebcamController' class destructor: Struct contents reference from a non-struct array object.
Error in matlab.webcam.internal.WebcamController/delete
Error in matlab.webcam.internal.WebcamController
Error in webcam (line 159) matlab.webcam.internal.WebcamController(devName, devID); > In matlab.webcam.internal.WebcamController In webcam (line 159) Error. The format exposed by the webcam is not supported.
I am wondering how I could circumnavigate this error. I currently have the Image Acquisition Toolbox Support for Generic OS INterfaces installed as well as MATLAB Support Package for USB Webcams. Any quick response would be greatly appreciated.
  3 个评论
Gil Silva
Gil Silva 2018-3-6
Hello, I have exactly the same problem.
Did you try to use the camera using the "Image Acquisition" app? If you run there and it's working, you can check the executed commands and you should be able to do the same in your own program.
(if you already found a solution, let me know)
Sami Durukan
Sami Durukan 2019-8-22
Exactly. I was having the same problem and already have solved as you said. It is just a video format problem. Many thanks..

请先登录,再进行评论。

回答(0 个)

Community Treasure Hunt

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

Start Hunting!

Translated by