C# Class Accord.Controls.Vision.FaceController

Face-based tracking controller.
Inheritance: System.ComponentModel.Component, IDisposable, IBindableComponent, INotifyPropertyChanged
Mostra file Open project: accord-net/framework

Private Properties

Property Type Description
computeCurrentPosition void
source_NewFrame void

Public Methods

Method Description
Calibrate ( FaceMovement movement ) : void

Calibrates the specified movement using current positions.

FaceController ( ) : System

Initializes a new instance of the FaceController class.

Reset ( ) : void

Resets the controller.

Start ( ) : void

Starts processing the source stream and sending events.

Stop ( ) : void

Stops sending events.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Releases the unmanaged resources used by the T:System.ComponentModel.Component and optionally releases the managed resources.

OnFaceEnter ( Accord.Controls.Vision.FaceEventArgs args ) : void

Called when a face enters the scene.

OnFaceLeave ( EventArgs args ) : void

Called when the face being tracked leaves the scene.

OnFaceMove ( Accord.Controls.Vision.FaceEventArgs args ) : void

Called when a head movement is detected.

OnPropertyChanged ( string name ) : void

Called when [property changed].

Private Methods

Method Description
computeCurrentPosition ( int width, int height ) : void
source_NewFrame ( object sender, NewFrameEventArgs eventArgs ) : void

Method Details

Calibrate() public method

Calibrates the specified movement using current positions.
public Calibrate ( FaceMovement movement ) : void
movement FaceMovement The movement to be calibrated.
return void

Dispose() protected method

Releases the unmanaged resources used by the T:System.ComponentModel.Component and optionally releases the managed resources.
protected Dispose ( bool disposing ) : void
disposing bool true to release both managed and unmanaged /// resources; false to release only unmanaged resources.
return void

FaceController() public method

Initializes a new instance of the FaceController class.
public FaceController ( ) : System
return System

OnFaceEnter() protected method

Called when a face enters the scene.
protected OnFaceEnter ( Accord.Controls.Vision.FaceEventArgs args ) : void
args Accord.Controls.Vision.FaceEventArgs
return void

OnFaceLeave() protected method

Called when the face being tracked leaves the scene.
protected OnFaceLeave ( EventArgs args ) : void
args System.EventArgs
return void

OnFaceMove() protected method

Called when a head movement is detected.
protected OnFaceMove ( Accord.Controls.Vision.FaceEventArgs args ) : void
args Accord.Controls.Vision.FaceEventArgs
return void

OnPropertyChanged() protected method

Called when [property changed].
protected OnPropertyChanged ( string name ) : void
name string The name.
return void

Reset() public method

Resets the controller.
public Reset ( ) : void
return void

Start() public method

Starts processing the source stream and sending events.
public Start ( ) : void
return void

Stop() public method

Stops sending events.
public Stop ( ) : void
return void