C# Class Accord.Controls.Vision.HeadController

Head-based tracking controller.
Inheritance: System.ComponentModel.Component, IBindableComponent, INotifyPropertyChanged, IVideoSource
Afficher le fichier Open project: accord-net/framework Class Usage Examples

Private Properties

Свойство Type Description
computeCurrentPosition void
source_NewFrame void
videoSource_PlayingFinished void
videoSource_VideoSourceError void

Méthodes publiques

Méthode Description
Calibrate ( HeadMovement movement ) : void

Calibrates the specified movement using current positions.

HeadController ( ) : Accord.Math

Initializes a new instance of the HeadController class.

Reset ( ) : void

Resets the controller.

SignalToStop ( ) : void

Signal the video source to stop.

Start ( ) : void

Starts processing the video source.

Stop ( ) : void

Stops the video source.

WaitForStop ( ) : void

Waits until the video source has stopped.

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

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

OnHeadEnter ( HeadEventArgs args ) : void

Called when a face enters the scene.

OnHeadLeave ( EventArgs args ) : void

Called when the face being tracked leaves the scene.

OnHeadMove ( HeadEventArgs args ) : void

Called when a head movement is detected.

OnPropertyChanged ( string name ) : void

Called when [property changed].

Private Methods

Méthode Description
computeCurrentPosition ( ) : void
source_NewFrame ( object sender, NewFrameEventArgs eventArgs ) : void
videoSource_PlayingFinished ( object sender, ReasonToFinishPlaying reason ) : void
videoSource_VideoSourceError ( object sender, VideoSourceErrorEventArgs eventArgs ) : void

Method Details

Calibrate() public méthode

Calibrates the specified movement using current positions.
public Calibrate ( HeadMovement movement ) : void
movement HeadMovement The movement to be calibrated.
Résultat void

Dispose() protected méthode

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

HeadController() public méthode

Initializes a new instance of the HeadController class.
public HeadController ( ) : Accord.Math
Résultat Accord.Math

OnHeadEnter() protected méthode

Called when a face enters the scene.
protected OnHeadEnter ( HeadEventArgs args ) : void
args HeadEventArgs
Résultat void

OnHeadLeave() protected méthode

Called when the face being tracked leaves the scene.
protected OnHeadLeave ( EventArgs args ) : void
args System.EventArgs
Résultat void

OnHeadMove() protected méthode

Called when a head movement is detected.
protected OnHeadMove ( HeadEventArgs args ) : void
args HeadEventArgs
Résultat void

OnPropertyChanged() protected méthode

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

Reset() public méthode

Resets the controller.
public Reset ( ) : void
Résultat void

SignalToStop() public méthode

Signal the video source to stop.
public SignalToStop ( ) : void
Résultat void

Start() public méthode

Starts processing the video source.
public Start ( ) : void
Résultat void

Stop() public méthode

Stops the video source.
public Stop ( ) : void
Résultat void

WaitForStop() public méthode

Waits until the video source has stopped.
public WaitForStop ( ) : void
Résultat void