How to change the source camera?
7 次查看(过去 30 天)
显示 更早的评论
I want to capture an image through "BAUMER" "Gige" Camera (external camera), currently i'm capturing an image through in built webcam in my laptop.How to change this please do tell.
0 个评论
采纳的回答
Walter Roberson
2015-6-18
g = gigecam(); %associate with first available one
img = snapshot(g); %get a frame
Or you can continue to use videoinput objects. For a working example see http://www.mathworks.com/matlabcentral/fileexchange/46879-gigeacq-m
2 个评论
Walter Roberson
2015-6-18
You need to install the drivers.
Note: GigE Camera support requires the Image Acquisition Toolbox
更多回答(1 个)
Adib Yusof
2020-10-5
编辑:Adib Yusof
2020-10-5
Try:
webcamlist
to see the list of installed cameras. By default, the built-in camera is camera no 1, and other external cameras are camera 2, 3 and so on. Check the number for the camera you wanna use. Then, when creating the webcam object, pass the number (for example the camera number you wanna use is 2) like this:
Cam = webcam(2)
Hope it helps!
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 GigE Vision Hardware 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!