フィルターのクリア

How to change the source camera?

8 ビュー (過去 30 日間)
Amardeep Singh
Amardeep Singh 2015 年 6 月 18 日
編集済み: Adib Yusof 2020 年 10 月 5 日
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.

採用された回答

Walter Roberson
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 件のコメント
Amardeep Singh
Amardeep Singh 2015 年 6 月 18 日
編集済み: Walter Roberson 2015 年 6 月 18 日
>> g = gigecam(); %associate with first available one
img = snapshot(g); %get a frame
Undefined function or variable 'gigecam'.
Walter Roberson
Walter Roberson 2015 年 6 月 18 日
You need to install the drivers.
Note: GigE Camera support requires the Image Acquisition Toolbox

サインインしてコメントする。

その他の回答 (1 件)

Adib Yusof
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!

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by