Provides access to web camera connected to Qwerk.

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 }
Наследование: IVideoSource
Пример #1
0
 /// <summary>
 /// Get Qwerk's video service.
 /// </summary>
 ///
 /// <returns>Returns Qwerk's video service.</returns>
 ///
 /// <remarks>For the list of possible exceptions, see documentation to
 /// <see cref="Qwerk.Video(Qwerk)"/>.</remarks>
 ///
 public Qwerk.Video GetVideoService( )
 {
     if (video == null)
     {
         video = new Video(this);
     }
     return(video);
 }
Пример #2
0
 /// <summary>
 /// Get Qwerk's video service.
 /// </summary>
 /// 
 /// <returns>Returns Qwerk's video service.</returns>
 /// 
 /// <remarks>For the list of possible exceptions, see documentation to
 /// <see cref="Qwerk.Video(Qwerk)"/>.</remarks>
 /// 
 public Qwerk.Video GetVideoService( )
 {
     if ( video == null )
     {
         video = new Video( this );
     }
     return video;
 }