目标: matlab_r2014a利用mac电脑自带摄像头录制avi视频
步骤: 1.在matlab窗口命令行输入info=imaqhwinfo,查看已安装的图像采集设备。
2. info =
InstalledAdaptors: {'dcam'}
MATLABVersion: '8.3 (R2014a)'
ToolboxName: 'Image Acquisition Toolbox'
ToolboxVersion: '4.7 (R2014a)'
3. 创建一个视频输入对象:
obj=videoinput(‘dcam’,1,’YUY2_320x240’);
问题:There are no devices installed for the specified ADAPTORNAME. See IMAQHWINFO.
原因:没有在matlab中安装对象摄像头的支持包
解决方法:1. 输入supportPackageInstaller,安装OS Generic Video Interface,GigE Vision Hardware(如果只用电脑自带摄像头可不安装)
2. 再次info=imaqhwinfo
3. info =
InstalledAdaptors: {'dcam' 'gige' 'macvideo'}
MATLABVersion: '8.3 (R2014a)'
ToolboxName: 'Image Acqui