Webcam and other Support packages are not working in MATLAB 2014b.

조회 수: 3 (최근 30일)
Naseeb Gill
Naseeb Gill 2018년 1월 17일
댓글: cr 2020년 11월 9일
I used webcam in Matlab 2014b to acquire images. But today when I used webcam in matlab script, it shows an error
_
Error using webcam (line 13) MATLAB Support Package for Webcams has not been installed. Open Support Package Installer to install the Webcam Support Package._
I already installed Webcam Support Package and its location is C:\MATLAB\SupportPackages\R2014b\usbwebcams.
To change my support directory I used matlabshared.supportpkg.getSupportPackageRoot but it shows error
Undefined variable "matlabshared" or class "matlabshared.supportpkg.getSupportPackageRoot".
When I tried to reinstall webcam support package, it shows error that already you have R2014b\usbwebcams first make empty that. I have many other support packages and so don't want to reinstall every package again. How should I solve this problem?
Thanks.

채택된 답변

Walter Roberson
Walter Roberson 2018년 1월 17일
You appear to have a corrupted list of add-ons. In R2014b, the only way to fix that was to uninstall them all, delete the add-ons directory, and re-install the ones you wanted.
  댓글 수: 3
Walter Roberson
Walter Roberson 2018년 1월 17일
Deleting them all is the official support case advice from Mathworks. If it is important to you that you do not uninstall and delete the folder, then you should open a support case with Mathworks. I do not know if they would consider this to be something that required a support contract or if they would consider this to be covered by "license and installation" matters.
You should go through the Add-on Explorer (or whatever it was named then) to uninstall them. Some of the add-ons (especially arduino) use folders in two different locations.
Once you have uninstalled whatever you can uninstall, delete C:\MATLAB\SupportPackages\R2014b and also delete anything in your Downloads\MATLAB* directory.
If you were not able to uninstall some package then you might also need to use pathtool to remove the path to the package from your MATLAB path.
cr
cr 2020년 11월 9일
I have the same issue with genicam drivers for usb3 cameras in R2017a. Even after installing them imaqhwinfo shows no installed adaptors. I uninstalled the package from add-on explorer and reinstalled multiple times, in vain. The same drivers work in R2018b on the same pc. They even work fine in R2017a on another PC with exact same configuration. Any ideas what more to try?

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

Community Treasure Hunt

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

Start Hunting!

Translated by