利用MATLAB查詢我自己筆電的攝影機資訊:
>> info = imaqhwinfo('winvideo')
info =
AdaptorDllName: [1x67 char]
AdaptorDllVersion: '4.3 (R2012a)'
AdaptorName: 'winvideo'
DeviceIDs: {[1]}
DeviceInfo: [1x1 struct]
>> info.DeviceInfo
ans =
DefaultFormat: 'YUY2_160x120'
DeviceFileSupported: 0
DeviceName: 'USB2.0 Camera'
DeviceID: 1
VideoInputConstructor: 'videoinput('winvideo', 1)'
VideoDeviceConstructor: 'imaq.VideoDevice('winvideo', 1)'
SupportedFormats: {1x4 cell}
>> info.DeviceInfo.SupportedFormats
ans =
Columns 1 through 3
'YUY2_160x120' 'YUY2_176x144' 'YUY2_320x240'
Column 4
'YUY2_640x480'