How to change the source camera?
조회 수: 8 (최근 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!