Camera does not show up using imaqtool.
5 ビュー (過去 30 日間)
表示 古いコメント
Hi,
I am trying to preview my webcam using imaqtool. Below is the code i used. It works fine with webcam support package but when using imaqtool, it shows up like below image.
vid = videoinput('macvideo', 1, 'YCbCr422_1280x720');
preview(vid);

0 件のコメント
回答 (2 件)
Madhura Suresh
2016 年 11 月 15 日
編集済み: Madhura Suresh
2016 年 11 月 15 日
Was the webcam object still in the workspace when you previewed this? That webcam object should be deleted, because the camera can be only be accessed by one object at a given point in time. Use
clear cam % where cam is the webcam object
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!