【error】Invalid ADAPTORNAME specified. Type 'imaqhwinfo' for a list of available ADAPTORNAMEs.

前言

使用matlab通过摄像头获取图像进行处理;

问题描述

使用matalb调用摄像头时出现错误:

>> imaqhwinfo
Warning: No Image Acquisition adaptors found. Image acquisition adaptors may be available as downloadable support packages.
Open Support Package Installer to install additional vendors. 
ans = 
    InstalledAdaptors: {}
        MATLABVersion: '8.5 (R2015a)'
          ToolboxName: 'Image Acquisition Toolbox'
       ToolboxVersion: '4.9 (R2015a)'

需要安装图像获取适配器的安装包,点主要安装下载  usb webcam  和OS Generic Video Interface这两个包,需要登录用自己的邮箱进行注册),具体操作步骤可以参考matlab的帮助文档;

操作步骤

参看matlab中的help文档:installing the Support Packages for Image Acquisition Toolbox Adaptors

注意

可能因为网络问题不能安装,可参考以下步骤;

Troubleshooting

If the setup fails, it could be caused by an internet security setting. If you get an error message such as "Setup Failed – An error occurred while installing," try the following and then run the installer again.

1.In Internet Explorer, go to Tools > Internet Options.
2.In Internet Options, select the Advanced tab.
3.Under the Security subsection, uncheck Check for publisher's certificate revocation to temporarily disable it, and click OK.
4.Run the installer again.
5.After you have installed the support package, re-enable the security option in Internet Explorer.

之后,即可正确下载;

>> imaqhwinfo
ans = 
    InstalledAdaptors: {'dcam'  'winvideo'}
        MATLABVersion: '8.5 (R2015a)'
          ToolboxName: 'Image Acquisition Toolbox'
       ToolboxVersion: '4.9 (R2015a)'

参考

1.matlab调用摄像头

原文地址:https://www.cnblogs.com/happyamyhope/p/9304892.html