C# Class Emgu.CV.Capture

Inheritance: Emgu.Util.UnmanagedObject, IDuplexCapture, ICapture
Afficher le fichier Open project: fajoy/RTSPExample Class Usage Examples

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode Description
DisposeObject ( ) : void

Release the resource for this capture

Private Methods

Méthode Description
Run ( ) : void

Method Details

Capture() public méthode

Create a capture using the default camera
public Capture ( ) : System
Résultat System

Capture() public méthode

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

Capture() public méthode

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.
Résultat System

Capture() public méthode

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
Résultat System

DisposeObject() protected méthode

Release the resource for this capture
protected DisposeObject ( ) : void
Résultat void

DuplexQueryFrame() public méthode

Query a frame duplexly over WCF
public DuplexQueryFrame ( ) : void
Résultat void

DuplexQuerySmallFrame() public méthode

Query a small frame duplexly over WCF
public DuplexQuerySmallFrame ( ) : void
Résultat void

GetCaptureProperty() public méthode

Obtain the capture property
public GetCaptureProperty ( CvEnum index ) : double
index CvEnum The index for the property
Résultat double

Grab() public méthode

Grab a frame
public Grab ( ) : bool
Résultat bool

Pause() public méthode

Pause the grab process if it is running.
public Pause ( ) : void
Résultat void

QueryFrame() public méthode

Capture a Bgr image frame
public QueryFrame ( ) : Byte>.Image
Résultat Byte>.Image

QueryGrayFrame() public méthode

Capture a Gray image frame
public QueryGrayFrame ( ) : Byte>.Image
Résultat Byte>.Image

QuerySmallFrame() public méthode

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
Résultat Byte>.Image

RetrieveBgrFrame() public méthode

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

RetrieveBgrFrame() public méthode

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

RetrieveGrayFrame() public méthode

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

RetrieveGrayFrame() public méthode

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

SetCaptureProperty() public méthode

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

Start() public méthode

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
Résultat void

Stop() public méthode

Stop the grabbing thread
public Stop ( ) : void
Résultat void

Wait() public méthode

Wait for the grabbing thread to complete
public Wait ( ) : void
Résultat void