Provides access to video stream from Surveyor SRV-1 Blackfin camera.

Namespace:  AForge.Robotics.Surveyor
Assembly:  AForge.Robotics.Surveyor (in AForge.Robotics.Surveyor.dll) Version: 2.2.4.0 (2.2.4.0)

Syntax

C#
public class SRV1Camera : IVideoSource

Remarks

The class allows to continuously receive video frames from Surveyor SRV-1 Blackfin camera. It creates a background thread and periodically requests new video frames from SRV-1 robot/camera, which are provided to user through NewFrame event. The video frame rate can be configured using FrameInterval property, which sets time interval between frames.

In order to get instance of this class, use GetCamera()()() or GetCamera(SVS..::.Camera) methods.

Sample usage:

CopyC#
// get SRV-1 camera
SRV1Camera camera = srv.GetCamera( );
// in the case you work with Surveyor SVS board
// the next line can be use
// SRV1Camera camera = svs.GetCamera( SVS.Camera.Left );

// set NewFrame event handler
camera.NewFrame += new NewFrameEventHandler( video_NewFrame );
// start the video source
camera.Start( );
// ...

private void video_NewFrame( object sender, NewFrameEventArgs eventArgs )
{
    // get new frame
    Bitmap bitmap = eventArgs.Frame;
    // process the frame
}

Inheritance Hierarchy

System..::.Object
  AForge.Robotics.Surveyor..::.SRV1Camera

See Also