24小时热门版块排行榜    

查看: 1228  |  回复: 2
当前只显示满足指定条件的回帖,点击这里查看本话题的所有回帖

rshuanghe

铜虫 (小有名气)

[求助] 输入变量太多,怎么办?

>> info=imaqhwinfo

info =

    InstalledAdaptors: {'winvideo'}
        MATLABVersion: '7.0 (R14)'
          ToolboxName: 'Image Acquisition Toolbox'
       ToolboxVersion: '1.5 (R14)'

>> win_info=imaqhwinfo('winvideo')%

win_info =

       AdaptorDllName: [1x60 char]
    AdaptorDllVersion: '1.5 (R14)'
          AdaptorName: 'winvideo'
            DeviceIDs: {[1]}
           DeviceInfo: [1x1 struct]

>> win_info.DeviceIDs

ans =

    [1]

>>  dev_win_info=win_info.DeviceInfo

dev_win_info =

          DefaultFormat: 'YUY2_640x480'
    DeviceFileSupported: 0
             DeviceName: 'Vimicro USB2.0 UVC PC Camera'
               DeviceID: 1
      ObjectConstructor: 'videoinput('winvideo', 1)'
       SupportedFormats: {1x5 cell}

>> dev_win_info.SupportedFormats%

ans =

  Columns 1 through 4

    'YUY2_640x480'    'YUY2_352x288'    'YUY2_320x240'    'YUY2_176x144'

  Column 5

    'YUY2_160x120'

>>  obj = videoinput('winvideo',1,'YUY2_320x240')%

Summary of Video Input Object Using 'Vimicro USB2.0 UVC PC Camera'.

   Acquisition Source(s):  input1 is available.

  Acquisition Parameters:  'input1' is the current selected source.
                           10 frames per trigger using the selected source.
                           'YUY2_320x240' video data to be logged upon START.
                           Grabbing first of every 1 frame(s).
                           Log data to 'memory' on trigger.

      Trigger Parameters:  1 'immediate' trigger(s) on START.

                  Status:  Waiting for START.
                           0 frames acquired since starting.
                           0 frames available for GETDATA.

>> vidRes = get(obj, 'VideoResolution');  
nBands = get(obj, 'NumberOfBands');  
figure()%
axes()%
hImage = image( zeros(vidRes(2), vidRes(1), nBands) );  
preview(obj, hImage);  
??? Error using ==> imaqdevice.preview
Too many input arguments.


>> 咋么办?
回复此楼
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

rshuanghe

铜虫 (小有名气)

引用回帖:
2楼: Originally posted by stlouis16 at 2013-10-19 20:30:36
用分类器分类。可以用一些分类模型。

很高级的样子
3楼2013-10-20 13:16:34
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
查看全部 3 个回答

stlouis16

禁虫 (小有名气)

感谢参与,应助指数 +1
本帖内容被屏蔽

2楼2013-10-19 20:30:36
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
信息提示
请填处理意见