C# Класс Emgu.CV.Capture

Наследование: Emgu.Util.UnmanagedObject, IDuplexCapture, ICapture
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Защищенные методы

Метод Описание
DisposeObject ( ) : void

Release the resource for this capture

Приватные методы

Метод Описание
Run ( ) : void

Описание методов

Capture() публичный Метод

Create a capture using the default camera
public Capture ( ) : System
Результат System

Capture() публичный Метод

Create a capture using the specific camera
public Capture ( CvEnum captureType ) : System
captureType CvEnum The capture type
Результат System

Capture() публичный Метод

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.
Результат System

Capture() публичный Метод

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
Результат System

DisposeObject() защищенный Метод

Release the resource for this capture
protected DisposeObject ( ) : void
Результат void

DuplexQueryFrame() публичный Метод

Query a frame duplexly over WCF
public DuplexQueryFrame ( ) : void
Результат void

DuplexQuerySmallFrame() публичный Метод

Query a small frame duplexly over WCF
public DuplexQuerySmallFrame ( ) : void
Результат void

GetCaptureProperty() публичный Метод

Obtain the capture property
public GetCaptureProperty ( CvEnum index ) : double
index CvEnum The index for the property
Результат double

Grab() публичный Метод

Grab a frame
public Grab ( ) : bool
Результат bool

Pause() публичный Метод

Pause the grab process if it is running.
public Pause ( ) : void
Результат void

QueryFrame() публичный Метод

Capture a Bgr image frame
public QueryFrame ( ) : Byte>.Image
Результат Byte>.Image

QueryGrayFrame() публичный Метод

Capture a Gray image frame
public QueryGrayFrame ( ) : Byte>.Image
Результат Byte>.Image

QuerySmallFrame() публичный Метод

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
Результат Byte>.Image

RetrieveBgrFrame() публичный Метод

Retrieve a Bgr image frame after Grab()
public RetrieveBgrFrame ( ) : Byte>.Image
Результат Byte>.Image

RetrieveBgrFrame() публичный Метод

Retrieve a Bgr image frame after Grab()
public RetrieveBgrFrame ( int streamIdx ) : Byte>.Image
streamIdx int Stream index
Результат Byte>.Image

RetrieveGrayFrame() публичный Метод

Retrieve a Gray image frame after Grab()
public RetrieveGrayFrame ( ) : Byte>.Image
Результат Byte>.Image

RetrieveGrayFrame() публичный Метод

Retrieve a Gray image frame after Grab()
public RetrieveGrayFrame ( int streamIdx ) : Byte>.Image
streamIdx int Stream index. Use 0 for default.
Результат Byte>.Image

SetCaptureProperty() публичный Метод

Sets the specified property of video capturing
public SetCaptureProperty ( CvEnum property, double value ) : void
property CvEnum Property identifier
value double Value of the property
Результат void

Start() публичный Метод

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
Результат void

Stop() публичный Метод

Stop the grabbing thread
public Stop ( ) : void
Результат void

Wait() публичный Метод

Wait for the grabbing thread to complete
public Wait ( ) : void
Результат void