Camera does not show up using imaqtool.
3 次查看(过去 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
Maoqi Li
2016-12-4
I have the same problem. So how to solve it?
4 个评论
Image Analyst
2017-4-22
If using Windows, then does the camera show up in Device Manager? If not, then not even Windows sees the camera, so MATLAB has no chance at it. If it does, then you may need to register a third party adapter from imaqtool's pulldown menu. Ask the camera manufacturer what that file might be, if they have one. If they don't have one, then maybe you can use a generic one instead like DCAM.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Acquisition Using Image Acquisition Explorer 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!