Video Object wont get accepted
古いコメントを表示
I was trying the following code to accept video from webcam:
vidobj = videoinput('winvideo', 1, 'RGB24_640x480');
set(vidobj, 'FramesPerTrigger', 60);
triggerconfig(vidobj, 'manual');
start(vidobj);
trigger(vidobj);
data = getdata(vidobj, [1 Inf]);
........
which is giving me the error: No method 'getdata' with matching signature found for class 'imaq.winvideo1_1'.
Error in test2 (line 19) data = getdata(vidobj, [1 Inf]);
Any help will be appreciated, thanks
採用された回答
その他の回答 (1 件)
Image Analyst
2014 年 5 月 25 日
0 投票
Maybe try getsnapshot(), or the new webcam add-on "Webcam support package" in R2014a http://www.mathworks.com/help/matlab/import_export/installing-the-webcams-support-package.html
カテゴリ
ヘルプ センター および File Exchange で Video Formats and Interfaces についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!