C# Class Emgu.CV.Capture

Inheritance: Emgu.Util.UnmanagedObject, IDuplexCapture, ICapture
Show file Open project: fajoy/RTSPExample Class Usage Examples

Public Methods

Method Description
Capture ( ) : System

Create a capture using the default camera

Capture ( CvEnum captureType ) : System

Create a capture using the specific camera

Capture ( String fileName ) : System

Create a capture from file or a video stream

Capture ( int camIndex ) : System

Create a capture using the specific camera

DuplexQueryFrame ( ) : void

Query a frame duplexly over WCF

DuplexQuerySmallFrame ( ) : void

Query a small frame duplexly over WCF

GetCaptureProperty ( CvEnum index ) : double

Obtain the capture property

Grab ( ) : bool

Grab a frame

Pause ( ) : void

Pause the grab process if it is running.

QueryFrame ( ) : Byte>.Image

Capture a Bgr image frame

QueryGrayFrame ( ) : Byte>.Image

Capture a Gray image frame

QuerySmallFrame ( ) : Byte>.Image

Capture a Bgr image frame that is half width and half height. Mainly used by WCF when sending image to remote locations in a bandwidth conservative scenario

Internally, this is a cvQueryFrame operation follow by a cvPyrDown

RetrieveBgrFrame ( ) : Byte>.Image

Retrieve a Bgr image frame after Grab()

RetrieveBgrFrame ( int streamIdx ) : Byte>.Image

Retrieve a Bgr image frame after Grab()

RetrieveGrayFrame ( ) : Byte>.Image

Retrieve a Gray image frame after Grab()

RetrieveGrayFrame ( int streamIdx ) : Byte>.Image

Retrieve a Gray image frame after Grab()

SetCaptureProperty ( CvEnum property, double value ) : void

Sets the specified property of video capturing

Start ( ) : void

Start the grab process in a sperate thread. Once started, use the ImageGrabbed event handler and RetrieveGrayFrame/RetrieveBgrFrame to obtain the images.

Stop ( ) : void

Stop the grabbing thread

Wait ( ) : void

Wait for the grabbing thread to complete

Protected Methods

Method Description
DisposeObject ( ) : void

Release the resource for this capture

Private Methods

Method Description
Run ( ) : void

Method Details

Capture() public method

Create a capture using the default camera
public Capture ( ) : System
return System

Capture() public method

Create a capture using the specific camera
public Capture ( CvEnum captureType ) : System
captureType CvEnum The capture type
return System

Capture() public method

Create a capture from file or a video stream
public Capture ( String fileName ) : System
fileName String The name of a file, or an url pointed to a stream.
return System

Capture() public method

Create a capture using the specific camera
public Capture ( int camIndex ) : System
camIndex int The index of the camera to create capture from, starting from 0
return System

DisposeObject() protected method

Release the resource for this capture
protected DisposeObject ( ) : void
return void

DuplexQueryFrame() public method

Query a frame duplexly over WCF
public DuplexQueryFrame ( ) : void
return void

DuplexQuerySmallFrame() public method

Query a small frame duplexly over WCF
public DuplexQuerySmallFrame ( ) : void
return void

GetCaptureProperty() public method

Obtain the capture property
public GetCaptureProperty ( CvEnum index ) : double
index CvEnum The index for the property
return double

Grab() public method

Grab a frame
public Grab ( ) : bool
return bool

Pause() public method

Pause the grab process if it is running.
public Pause ( ) : void
return void

QueryFrame() public method

Capture a Bgr image frame
public QueryFrame ( ) : Byte>.Image
return Byte>.Image

QueryGrayFrame() public method

Capture a Gray image frame
public QueryGrayFrame ( ) : Byte>.Image
return Byte>.Image

QuerySmallFrame() public method

Capture a Bgr image frame that is half width and half height. Mainly used by WCF when sending image to remote locations in a bandwidth conservative scenario
Internally, this is a cvQueryFrame operation follow by a cvPyrDown
public QuerySmallFrame ( ) : Byte>.Image
return Byte>.Image

RetrieveBgrFrame() public method

Retrieve a Bgr image frame after Grab()
public RetrieveBgrFrame ( ) : Byte>.Image
return Byte>.Image

RetrieveBgrFrame() public method

Retrieve a Bgr image frame after Grab()
public RetrieveBgrFrame ( int streamIdx ) : Byte>.Image
streamIdx int Stream index
return Byte>.Image

RetrieveGrayFrame() public method

Retrieve a Gray image frame after Grab()
public RetrieveGrayFrame ( ) : Byte>.Image
return Byte>.Image

RetrieveGrayFrame() public method

Retrieve a Gray image frame after Grab()
public RetrieveGrayFrame ( int streamIdx ) : Byte>.Image
streamIdx int Stream index. Use 0 for default.
return Byte>.Image

SetCaptureProperty() public method

Sets the specified property of video capturing
public SetCaptureProperty ( CvEnum property, double value ) : void
property CvEnum Property identifier
value double Value of the property
return void

Start() public method

Start the grab process in a sperate thread. Once started, use the ImageGrabbed event handler and RetrieveGrayFrame/RetrieveBgrFrame to obtain the images.
public Start ( ) : void
return void

Stop() public method

Stop the grabbing thread
public Stop ( ) : void
return void

Wait() public method

Wait for the grabbing thread to complete
public Wait ( ) : void
return void