Class TofArFaceManager
顔の認識を管理する
Inheritance
Inherited Members
Namespace: TofAr.V0.Face
Assembly: TofArFaceAssembly.dll
Syntax
public class TofArFaceManager : Singleton<TofArFaceManager>, IStreamStoppable, IDisposable, IStreamHolder, IDependManager
Fields
autoStart
trueの場合、アプリケーション開始時に自動的にFaceデータのストリームを開始する
Declaration
public bool autoStart
Field Value
Type |
---|
System.Boolean |
StreamKey
ストリームキー
Declaration
public const string StreamKey = "tofar_face_camera2_stream"
Field Value
Type |
---|
System.String |
Properties
DetectorType
Face検出方法
Declaration
public FaceDetectorType DetectorType { get; set; }
Property Value
Type |
---|
FaceDetectorType |
FaceData
Faceデータ
Declaration
public FaceData FaceData { get; }
Property Value
Type |
---|
FaceData |
FrameRate
実測FPS
Declaration
public float FrameRate { get; }
Property Value
Type |
---|
System.Single |
IsPlaying
trueの場合、録画ファイルを再生している
Declaration
public bool IsPlaying { get; }
Property Value
Type |
---|
System.Boolean |
IsStreamActive
trueの場合ストリーミングを行っている
Declaration
public bool IsStreamActive { get; }
Property Value
Type |
---|
System.Boolean |
Stream
ストリーム
Declaration
public Stream Stream { get; }
Property Value
Type |
---|
SensCord.Stream |
StreamPlay
再生ストリーム
Declaration
public Stream StreamPlay { get; }
Property Value
Type |
---|
SensCord.Stream |
Version
コンポーネントのバージョン番号
Declaration
public string Version { get; }
Property Value
Type |
---|
System.String |
Methods
Dispose()
オブジェクト破棄
Declaration
public void Dispose()
Dispose(Boolean)
破棄処理
Declaration
public void Dispose(bool ignoreEventRelease)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | ignoreEventRelease | trueの場合、イベントハンドラのクリアをスキップする |
FinalizeRestartStreamByDependManager(Object)
依存するManagerから要求されたストリーミング再スタート後処理
Declaration
public void FinalizeRestartStreamByDependManager(object requestSource)
Parameters
Type | Name | Description |
---|---|---|
System.Object | requestSource | 要求元 |
GetProperty<T>()
コンポーネントプロパティを取得する
Declaration
public T GetProperty<T>()
where T : class, IBaseProperty, new()
Returns
Type | Description |
---|---|
T | プロパティクラス |
Type Parameters
Name | Description |
---|---|
T | IBaseProperty継承クラス |
GetProperty<T>(T)
コンポーネントプロパティを取得する。入力パラメータvalueを指定可能。
Declaration
public T GetProperty<T>(T value)
where T : class, IBaseProperty
Parameters
Type | Name | Description |
---|---|---|
T | value | 入力パラメータ |
Returns
Type | Description |
---|---|
T | プロパティクラス |
Type Parameters
Name | Description |
---|---|
T | IBaseProperty継承クラス |
GetProperty<T>(T, Int32)
シリアライズ用バッファサイズを指定してコンポーネントプロパティを取得する。入力パラメータvalueを指定可能。
Declaration
public T GetProperty<T>(T value, int bufferSize)
where T : class, IBaseProperty, new()
Parameters
Type | Name | Description |
---|---|---|
T | value | 入力パラメータ |
System.Int32 | bufferSize | シリアライズ用バッファサイズ |
Returns
Type | Description |
---|---|
T | プロパティクラス |
Type Parameters
Name | Description |
---|---|
T | IBaseProperty継承クラス |
GetPropertyList()
Propertyリスト取得する
Declaration
public string[] GetPropertyList()
Returns
Type | Description |
---|---|
System.String[] | Propertyリスト |
PauseStream()
ストリームを停止する
Declaration
public void PauseStream()
RestartStreamByDependManager(Object)
依存するManagerから要求されたストリーミング再スタートを開始する
Declaration
public void RestartStreamByDependManager(object requestSource)
Parameters
Type | Name | Description |
---|---|---|
System.Object | requestSource | 要求元 |
SetEstimatedResult(FaceResult)
推定結果
Declaration
public void SetEstimatedResult(FaceResult result)
Parameters
Type | Name | Description |
---|---|---|
FaceResult | result | Face認識結果 |
SetEstimatedResults(FaceResults)
推定結果
Declaration
public void SetEstimatedResults(FaceResults results)
Parameters
Type | Name | Description |
---|---|---|
FaceResults | results | Face認識結果 |
SetProperty<T>(T)
コンポーネントプロパティを設定する
Declaration
public void SetProperty<T>(T value)
where T : class, IBaseProperty
Parameters
Type | Name | Description |
---|---|---|
T | value | 入力パラメータ |
Type Parameters
Name | Description |
---|---|
T | IBaseProperty継承クラス |
StartPlayback()
録画ファイル再生中のColorストリームをソースとして再生を開始する
Declaration
public void StartPlayback()
StartPlayback(String)
指定されたパス内の録画ファイルの再生を開始する
Declaration
public void StartPlayback(string path)
Parameters
Type | Name | Description |
---|---|---|
System.String | path | 再生する録画ファイルを含むディレクトリのパス |
StartStream()
ストリーミングを開始する
Declaration
public void StartStream()
StopPlayback()
録画ファイルの再生を停止する
Declaration
public void StopPlayback()
StopStream(Object)
ストリーミングを停止する
Declaration
public void StopStream(object sender = null)
Parameters
Type | Name | Description |
---|---|---|
System.Object | sender | 送信元オブジェクト |
UnpauseStream()
ストリームを再開する
Declaration
public void UnpauseStream()
Events
OnApplicationPausing
アプリケーション一時停止開始時
Declaration
public static event TofArFaceManager.ApplicationPausingEventHandler OnApplicationPausing
Event Type
Type | Description |
---|---|
TofArFaceManager.ApplicationPausingEventHandler |
OnApplicationResuming
アプリケーション復帰開始時
Declaration
public static event TofArFaceManager.ApplicationResumingEventHandler OnApplicationResuming
Event Type
Type | Description |
---|---|
TofArFaceManager.ApplicationResumingEventHandler |
OnFaceEstimated
Face推定結果通知
Declaration
public static event TofArFaceManager.OnFaceEstimatedHandler OnFaceEstimated
Event Type
Type | Description |
---|---|
TofArFaceManager.OnFaceEstimatedHandler |
OnFrameArrived
新しいフレームの到着通知
Declaration
public static event TofArFaceManager.FrameArrivedEventHandler OnFrameArrived
Event Type
Type | Description |
---|---|
TofArFaceManager.FrameArrivedEventHandler |
OnStreamStarted
ストリーミング開始通知
Declaration
public static event TofArFaceManager.StreamStartedEventHandler OnStreamStarted
Event Type
Type | Description |
---|---|
TofArFaceManager.StreamStartedEventHandler |
OnStreamStopped
ストリーミング終了通知
Declaration
public static event TofArFaceManager.StreamStoppedEventHandler OnStreamStopped
Event Type
Type | Description |
---|---|
TofArFaceManager.StreamStoppedEventHandler |