The Camera class provides methods for querying information about the uEye API version or the OS version.
Methods
Method |
Description |
---|---|
Returns information about the connected cameras. |
|
Returns information about connected uEye cameras. |
|
Returns the number of uEye cameras connected to the PC. |
The Camera class also provides special camera events:
Event |
Description |
---|---|
uEye.Info.Camera.EventDeviceRemoved |
A camera was removed. This is independent of the device handle. |
uEye.Info.Camera.EventDeviceRemovedETH |
A GigE camera was removed. This is independent of the device handle. |
uEye.Info.Camera.EventDeviceRemovedUSB |
An USB camera was removed. This is independent of the device handle. |
uEye.Info.Camera.EventNewDevice |
A camera was newly connected. This is independent of the device handle. |
uEye.Info.Camera.EventNewDeviceETH |
A GigE camera was newly connected. This is independent of the device handle. |
uEye.Info.Camera.EventNewDeviceUSB |
An USB camera was newly connected. This is independent of the device handle. |
Example
// Get all camera informations
uEye.Types.CameraInformation[] cameraInfos;
uEye.Info.Camera.GetCameraList(out cameraInfos);
// Get device information of specified camera
uEye.Types.DeviceInformation deviceInfo;
uEye.Info.Camera.GetDeviceInfo(DEVICEID,out deviceInfo);
// Get number of connected devices
int numOfDevices;
uEye.Info.Camera.GetNumberOfDevices(out numOfDevices);