C# Class PredatorCV.Sources.Camera

Inheritance: Emgu.Util.UnmanagedObject, IDuplexCapture, ICapture, ISource
Datei anzeigen Open project: genecyber/PredatorCV

Public Methods

Method Description
Camera ( ) : System

Create a capture using the default camera

Camera ( String fileName ) : System

Create a capture from file or a video stream

Camera ( 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 ( CAP_PROP index ) : double

Obtain the capture property

QueryFrame ( ) : Byte>.Image

Capture a Bgr image frame

QueryFrame ( int destX, int destY, int cx, int cy ) : byte>.Image
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

SetCaptureProperty ( CAP_PROP property, double value ) : void

Sets the specified property of video capturing

Protected Methods

Method Description
DisposeObject ( ) : void

Release the resource for this capture

Method Details

Camera() public method

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

Camera() public method

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

Camera() public method

Create a capture using the specific camera
public Camera ( 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 ( CAP_PROP index ) : double
index CAP_PROP The index for the property
return double

QueryFrame() public method

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

QueryFrame() public method

public QueryFrame ( int destX, int destY, int cx, int cy ) : byte>.Image
destX int
destY int
cx int
cy int
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

SetCaptureProperty() public method

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