C# Класс Accord.Controls.Vision.HeadController

Head-based tracking controller.
Наследование: System.ComponentModel.Component, IBindableComponent, INotifyPropertyChanged, IVideoSource
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
computeCurrentPosition void
source_NewFrame void
videoSource_PlayingFinished void
videoSource_VideoSourceError void

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

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

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

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

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

Метод Описание
computeCurrentPosition ( ) : void
source_NewFrame ( object sender, NewFrameEventArgs eventArgs ) : void
videoSource_PlayingFinished ( object sender, ReasonToFinishPlaying reason ) : void
videoSource_VideoSourceError ( object sender, VideoSourceErrorEventArgs eventArgs ) : void

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

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

Calibrates the specified movement using current positions.
public Calibrate ( HeadMovement movement ) : void
movement HeadMovement The movement to be calibrated.
Результат void

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

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

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

Initializes a new instance of the HeadController class.
public HeadController ( ) : Accord.Math
Результат Accord.Math

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

Called when a face enters the scene.
protected OnHeadEnter ( HeadEventArgs args ) : void
args HeadEventArgs
Результат void

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

Called when the face being tracked leaves the scene.
protected OnHeadLeave ( EventArgs args ) : void
args System.EventArgs
Результат void

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

Called when a head movement is detected.
protected OnHeadMove ( HeadEventArgs args ) : void
args HeadEventArgs
Результат void

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

Called when [property changed].
protected OnPropertyChanged ( string name ) : void
name string The name.
Результат void

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

Resets the controller.
public Reset ( ) : void
Результат void

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

Signal the video source to stop.
public SignalToStop ( ) : void
Результат void

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

Starts processing the video source.
public Start ( ) : void
Результат void

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

Stops the video source.
public Stop ( ) : void
Результат void

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

Waits until the video source has stopped.
public WaitForStop ( ) : void
Результат void