The class provides access to XIMEA cameras.
Namespace:
AForge.Video.XimeaAssembly: AForge.Video.Ximea (in AForge.Video.Ximea.dll) Version: 2.2.4.0 (2.2.4.0)
Syntax
| C# |
|---|
public class XimeaCamera |
Remarks
The class allows to perform image acquisition from XIMEA cameras. It wraps XIMEA’a xiAPI, which means that users of this class will also require m3api.dll and a correct TM file for the camera model connected to the system (both are provided with XIMEA API software package).
Sample usage:
XimeaCamera camera = new XimeaCamera( ); // open camera and start data acquisition camera.Open( 0 ); camera.StartAcquisition( ); // set exposure time to 10 milliseconds camera.SetParam( CameraParameter.Exposure, 10 * 1000 ); // get image from the camera Bitmap bitmap = camera.GetImage( ); // process the image // ... // dispose the image when it is no longer needed bitmap.Dispose( ); // stop data acquisition and close the camera camera.StopAcquisition( ); camera.Close( );