How to change the source camera?
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Amardeep Singh
el 18 de Jun. de 2015
Editada: Adib Yusof
el 5 de Oct. de 2020
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 comentarios
Respuesta aceptada
Walter Roberson
el 18 de Jun. de 2015
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 comentarios
Amardeep Singh
el 18 de Jun. de 2015
Editada: Walter Roberson
el 18 de Jun. de 2015
Walter Roberson
el 18 de Jun. de 2015
You need to install the drivers.
Note: GigE Camera support requires the Image Acquisition Toolbox
Más respuestas (1)
Adib Yusof
el 5 de Oct. de 2020
Editada: Adib Yusof
el 5 de Oct. de 2020
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 comentarios
Ver también
Categorías
Más información sobre GigE Vision Hardware en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!