Provides access to web camera connected to Qwerk.
Namespace:
AForge.Robotics.TeRKAssembly: AForge.Robotics.TeRK (in AForge.Robotics.TeRK.dll) Version: 2.2.5.0 (2.2.5.0)
Syntax
C# |
---|
[ObsoleteAttribute("The class is deprecated.")] public class Video : IVideoSource |
Remarks
The class allows to start Qwerk's camera and continuously receive frames from it. The class creates background thread to poll Qwerk's camera and provides them through NewFrame event. The video frame rate can be configured using FrameInterval property, which sets time interval between frames.

Sample usage:

// get Qwerk's video service Qwerk.Video video = qwerk.GetVideoService( ); // set NewFrame event handler video.NewFrame += new NewFrameEventHandler( video_NewFrame ); // start the video source video.Start( ); // ... // signal to stop video.SignalToStop( ); // ... private void video_NewFrame( object sender, NewFrameEventArgs eventArgs ) { // get new frame Bitmap bitmap = eventArgs.Frame; // process the frame }