C# Class Kinect.Kinect2Interface

Inheritance: DepthSensorInterface
Afficher le fichier Open project: BrainProject/UnityTemp

Méthodes publiques

Свойство Type Description
coordMapper CoordinateMapper
faceFrameReaders FaceFrameReader[]
faceFrameResults FaceFrameResult[]
faceFrameSources FaceFrameSource[]
hdFaceAlignments FaceAlignment[]
hdFaceFrameReaders HighDefinitionFaceFrameReader[]
hdFaceFrameSources HighDefinitionFaceFrameSource[]
hdFaceModels FaceModel[]
kinectSensor KinectSensor
sensorAlwaysAvailable bool

Méthodes publiques

Méthode Description
AddGrammarPhrase ( string sFromRule, string sToRule, string sPhrase, bool bClearRulePhrases, bool bCommitGrammar ) : int
ClearRecognizedPhrase ( ) : void
CloseSensor ( KinectInterop sensorData ) : void
FinishBackgroundRemoval ( KinectInterop sensorData ) : void
FinishFaceTracking ( ) : void
FinishSpeechRecognition ( ) : void
FixJointOrientations ( KinectInterop sensorData, KinectInterop &bodyData ) : void
FreeMultiSourceFrame ( KinectInterop sensorData ) : void
FreeSensorInterface ( bool bDeleteLibs ) : void
GetAnimUnits ( long userId, float>.Dictionary &dictAU ) : bool
GetFaceModelTriangles ( bool bMirrored, int &avTriangles ) : bool
GetFaceModelTrianglesCount ( ) : int
GetFaceModelVertices ( long userId, Vector3 &avVertices ) : bool
GetFaceModelVerticesCount ( long userId ) : int
GetFaceRect ( long userId, Rect &faceRect ) : bool
GetForegroundFrameLength ( KinectInterop sensorData, bool isHiResPrefered ) : int
GetForegroundFrameRect ( KinectInterop sensorData, bool isHiResPrefered ) : Rect
GetHeadPosition ( long userId, Vector3 &headPos ) : bool
GetHeadRotation ( long userId, Quaternion &headRot ) : bool
GetJointIndex ( KinectInterop joint ) : int
GetMultiSourceFrame ( KinectInterop sensorData ) : bool
GetNextJoint ( KinectInterop joint ) : KinectInterop.JointType
GetParentJoint ( KinectInterop joint ) : KinectInterop.JointType
GetPhraseConfidence ( ) : float
GetRecognizedPhraseTag ( ) : string
GetSensorPlatform ( ) : KinectInterop.DepthSensorPlatform
GetSensorsCount ( ) : int
GetShapeUnits ( long userId, float>.Dictionary &dictSU ) : bool
InitBackgroundRemoval ( KinectInterop sensorData, bool isHiResPrefered ) : bool
InitFaceTracking ( bool bUseFaceModel, bool bDrawFaceRect ) : bool
InitSensorInterface ( bool bCopyLibs, bool &bNeedRestart ) : bool
InitSpeechRecognition ( string sRecoCriteria, bool bUseKinect, bool bAdaptationOff ) : int
IsBRHiResSupported ( ) : bool
IsBackgroundRemovalActive ( ) : bool
IsBackgroundRemovalAvailable ( bool &bNeedRestart ) : bool
IsBodyTurned ( KinectInterop &bodyData ) : bool
IsDrawFaceRect ( ) : bool
IsFaceTracked ( long userId ) : bool
IsFaceTrackingActive ( ) : bool
IsFaceTrackingAvailable ( bool &bNeedRestart ) : bool
IsPhraseRecognized ( ) : bool
IsSensorAvailable ( ) : bool
IsSpeechEnded ( ) : bool
IsSpeechRecognitionAvailable ( bool &bNeedRestart ) : bool
IsSpeechStarted ( ) : bool
LoadSpeechGrammar ( string sFileName, short iLangCode, bool bDynamic ) : int
MapColorFrameToDepthCoords ( KinectInterop sensorData, Vector2 &vDepthCoords ) : bool
MapDepthFrameToColorCoords ( KinectInterop sensorData, Vector2 &vColorCoords ) : bool
MapDepthPointToColorCoords ( KinectInterop sensorData, Vector2 depthPos, ushort depthVal ) : Vector2
MapDepthPointToSpaceCoords ( KinectInterop sensorData, Vector2 depthPos, ushort depthVal ) : Vector3
MapSpacePointToDepthCoords ( KinectInterop sensorData, Vector3 spacePos ) : Vector2
OpenDefaultSensor ( KinectInterop dwFlags, float sensorAngle, bool bUseMultiSource ) : KinectInterop.SensorData
PollBodyFrame ( KinectInterop sensorData, KinectInterop &bodyFrame, Matrix4x4 &kinectToWorld ) : bool
PollColorFrame ( KinectInterop sensorData ) : bool
PollDepthFrame ( KinectInterop sensorData ) : bool
PollForegroundFrame ( KinectInterop sensorData, bool isHiResPrefered, Color32 defaultColor, bool bLimitedUsers, ICollection alTrackedIndexes, byte &foregroundImage ) : bool
PollInfraredFrame ( KinectInterop sensorData ) : bool
SetSpeechConfidence ( float fConfidence ) : void
UpdateBackgroundRemoval ( KinectInterop sensorData, bool isHiResPrefered, Color32 defaultColor ) : bool
UpdateFaceTracking ( ) : bool
UpdateSensorData ( KinectInterop sensorData ) : bool
UpdateSpeechRecognition ( ) : int
VisualizeFaceTrackerOnColorTex ( Texture2D texColor ) : void

Private Methods

Méthode Description
AddGrammarPhraseNative ( [ sFromRule, [ sToRule, [ sPhrase, bool bClearRule, bool bCommitGrammar ) : int
ClearRecognizedPhraseNative ( ) : void
DrawLine ( Texture2D a_Texture, Vector2 ptStart, Vector2 ptEnd, UnityEngine a_Color ) : void
FinishSpeechRecognizerNative ( ) : void
GetFaceSourceIndex ( Microsoft.Kinect.Face.FaceFrameSource faceFrameSource ) : int
GetPhraseConfidenceNative ( ) : float
GetRecognizedPhraseTagNative ( ) : IntPtr
InitSpeechRecognizerNative ( [ sRecoCriteria, bool bUseKinect, bool bAdaptationOff ) : int
IsPhraseRecognizedNative ( ) : bool
IsSpeechEndedNative ( ) : bool
IsSpeechStartedNative ( ) : bool
LoadSpeechGrammarNative ( [ sFileName, short iNewLangCode, bool bDynamic ) : int
SetSpeechConfidenceNative ( float fConfidence ) : void
UpdateSpeechRecognizerNative ( ) : int
ValidateFaceBox ( FaceFrameResult faceResult ) : bool

Method Details

AddGrammarPhrase() public méthode

public AddGrammarPhrase ( string sFromRule, string sToRule, string sPhrase, bool bClearRulePhrases, bool bCommitGrammar ) : int
sFromRule string
sToRule string
sPhrase string
bClearRulePhrases bool
bCommitGrammar bool
Résultat int

ClearRecognizedPhrase() public méthode

public ClearRecognizedPhrase ( ) : void
Résultat void

CloseSensor() public méthode

public CloseSensor ( KinectInterop sensorData ) : void
sensorData KinectInterop
Résultat void

FinishBackgroundRemoval() public méthode

public FinishBackgroundRemoval ( KinectInterop sensorData ) : void
sensorData KinectInterop
Résultat void

FinishFaceTracking() public méthode

public FinishFaceTracking ( ) : void
Résultat void

FinishSpeechRecognition() public méthode

public FinishSpeechRecognition ( ) : void
Résultat void

FixJointOrientations() public méthode

public FixJointOrientations ( KinectInterop sensorData, KinectInterop &bodyData ) : void
sensorData KinectInterop
bodyData KinectInterop
Résultat void

FreeMultiSourceFrame() public méthode

public FreeMultiSourceFrame ( KinectInterop sensorData ) : void
sensorData KinectInterop
Résultat void

FreeSensorInterface() public méthode

public FreeSensorInterface ( bool bDeleteLibs ) : void
bDeleteLibs bool
Résultat void

GetAnimUnits() public méthode

public GetAnimUnits ( long userId, float>.Dictionary &dictAU ) : bool
userId long
dictAU float>.Dictionary
Résultat bool

GetFaceModelTriangles() public méthode

public GetFaceModelTriangles ( bool bMirrored, int &avTriangles ) : bool
bMirrored bool
avTriangles int
Résultat bool

GetFaceModelTrianglesCount() public méthode

public GetFaceModelTrianglesCount ( ) : int
Résultat int

GetFaceModelVertices() public méthode

public GetFaceModelVertices ( long userId, Vector3 &avVertices ) : bool
userId long
avVertices Vector3
Résultat bool

GetFaceModelVerticesCount() public méthode

public GetFaceModelVerticesCount ( long userId ) : int
userId long
Résultat int

GetFaceRect() public méthode

public GetFaceRect ( long userId, Rect &faceRect ) : bool
userId long
faceRect UnityEngine.Rect
Résultat bool

GetForegroundFrameLength() public méthode

public GetForegroundFrameLength ( KinectInterop sensorData, bool isHiResPrefered ) : int
sensorData KinectInterop
isHiResPrefered bool
Résultat int

GetForegroundFrameRect() public méthode

public GetForegroundFrameRect ( KinectInterop sensorData, bool isHiResPrefered ) : Rect
sensorData KinectInterop
isHiResPrefered bool
Résultat UnityEngine.Rect

GetHeadPosition() public méthode

public GetHeadPosition ( long userId, Vector3 &headPos ) : bool
userId long
headPos Vector3
Résultat bool

GetHeadRotation() public méthode

public GetHeadRotation ( long userId, Quaternion &headRot ) : bool
userId long
headRot UnityEngine.Quaternion
Résultat bool

GetJointIndex() public méthode

public GetJointIndex ( KinectInterop joint ) : int
joint KinectInterop
Résultat int

GetMultiSourceFrame() public méthode

public GetMultiSourceFrame ( KinectInterop sensorData ) : bool
sensorData KinectInterop
Résultat bool

GetNextJoint() public méthode

public GetNextJoint ( KinectInterop joint ) : KinectInterop.JointType
joint KinectInterop
Résultat KinectInterop.JointType

GetParentJoint() public méthode

public GetParentJoint ( KinectInterop joint ) : KinectInterop.JointType
joint KinectInterop
Résultat KinectInterop.JointType

GetPhraseConfidence() public méthode

public GetPhraseConfidence ( ) : float
Résultat float

GetRecognizedPhraseTag() public méthode

public GetRecognizedPhraseTag ( ) : string
Résultat string

GetSensorPlatform() public méthode

public GetSensorPlatform ( ) : KinectInterop.DepthSensorPlatform
Résultat KinectInterop.DepthSensorPlatform

GetSensorsCount() public méthode

public GetSensorsCount ( ) : int
Résultat int

GetShapeUnits() public méthode

public GetShapeUnits ( long userId, float>.Dictionary &dictSU ) : bool
userId long
dictSU float>.Dictionary
Résultat bool

InitBackgroundRemoval() public méthode

public InitBackgroundRemoval ( KinectInterop sensorData, bool isHiResPrefered ) : bool
sensorData KinectInterop
isHiResPrefered bool
Résultat bool

InitFaceTracking() public méthode

public InitFaceTracking ( bool bUseFaceModel, bool bDrawFaceRect ) : bool
bUseFaceModel bool
bDrawFaceRect bool
Résultat bool

InitSensorInterface() public méthode

public InitSensorInterface ( bool bCopyLibs, bool &bNeedRestart ) : bool
bCopyLibs bool
bNeedRestart bool
Résultat bool

InitSpeechRecognition() public méthode

public InitSpeechRecognition ( string sRecoCriteria, bool bUseKinect, bool bAdaptationOff ) : int
sRecoCriteria string
bUseKinect bool
bAdaptationOff bool
Résultat int

IsBRHiResSupported() public méthode

public IsBRHiResSupported ( ) : bool
Résultat bool

IsBackgroundRemovalActive() public méthode

public IsBackgroundRemovalActive ( ) : bool
Résultat bool

IsBackgroundRemovalAvailable() public méthode

public IsBackgroundRemovalAvailable ( bool &bNeedRestart ) : bool
bNeedRestart bool
Résultat bool

IsBodyTurned() public méthode

public IsBodyTurned ( KinectInterop &bodyData ) : bool
bodyData KinectInterop
Résultat bool

IsDrawFaceRect() public méthode

public IsDrawFaceRect ( ) : bool
Résultat bool

IsFaceTracked() public méthode

public IsFaceTracked ( long userId ) : bool
userId long
Résultat bool

IsFaceTrackingActive() public méthode

public IsFaceTrackingActive ( ) : bool
Résultat bool

IsFaceTrackingAvailable() public méthode

public IsFaceTrackingAvailable ( bool &bNeedRestart ) : bool
bNeedRestart bool
Résultat bool

IsPhraseRecognized() public méthode

public IsPhraseRecognized ( ) : bool
Résultat bool

IsSensorAvailable() public méthode

public IsSensorAvailable ( ) : bool
Résultat bool

IsSpeechEnded() public méthode

public IsSpeechEnded ( ) : bool
Résultat bool

IsSpeechRecognitionAvailable() public méthode

public IsSpeechRecognitionAvailable ( bool &bNeedRestart ) : bool
bNeedRestart bool
Résultat bool

IsSpeechStarted() public méthode

public IsSpeechStarted ( ) : bool
Résultat bool

LoadSpeechGrammar() public méthode

public LoadSpeechGrammar ( string sFileName, short iLangCode, bool bDynamic ) : int
sFileName string
iLangCode short
bDynamic bool
Résultat int

MapColorFrameToDepthCoords() public méthode

public MapColorFrameToDepthCoords ( KinectInterop sensorData, Vector2 &vDepthCoords ) : bool
sensorData KinectInterop
vDepthCoords Vector2
Résultat bool

MapDepthFrameToColorCoords() public méthode

public MapDepthFrameToColorCoords ( KinectInterop sensorData, Vector2 &vColorCoords ) : bool
sensorData KinectInterop
vColorCoords Vector2
Résultat bool

MapDepthPointToColorCoords() public méthode

public MapDepthPointToColorCoords ( KinectInterop sensorData, Vector2 depthPos, ushort depthVal ) : Vector2
sensorData KinectInterop
depthPos Vector2
depthVal ushort
Résultat Vector2

MapDepthPointToSpaceCoords() public méthode

public MapDepthPointToSpaceCoords ( KinectInterop sensorData, Vector2 depthPos, ushort depthVal ) : Vector3
sensorData KinectInterop
depthPos Vector2
depthVal ushort
Résultat Vector3

MapSpacePointToDepthCoords() public méthode

public MapSpacePointToDepthCoords ( KinectInterop sensorData, Vector3 spacePos ) : Vector2
sensorData KinectInterop
spacePos Vector3
Résultat Vector2

OpenDefaultSensor() public méthode

public OpenDefaultSensor ( KinectInterop dwFlags, float sensorAngle, bool bUseMultiSource ) : KinectInterop.SensorData
dwFlags KinectInterop
sensorAngle float
bUseMultiSource bool
Résultat KinectInterop.SensorData

PollBodyFrame() public méthode

public PollBodyFrame ( KinectInterop sensorData, KinectInterop &bodyFrame, Matrix4x4 &kinectToWorld ) : bool
sensorData KinectInterop
bodyFrame KinectInterop
kinectToWorld UnityEngine.Matrix4x4
Résultat bool

PollColorFrame() public méthode

public PollColorFrame ( KinectInterop sensorData ) : bool
sensorData KinectInterop
Résultat bool

PollDepthFrame() public méthode

public PollDepthFrame ( KinectInterop sensorData ) : bool
sensorData KinectInterop
Résultat bool

PollForegroundFrame() public méthode

public PollForegroundFrame ( KinectInterop sensorData, bool isHiResPrefered, Color32 defaultColor, bool bLimitedUsers, ICollection alTrackedIndexes, byte &foregroundImage ) : bool
sensorData KinectInterop
isHiResPrefered bool
defaultColor UnityEngine.Color32
bLimitedUsers bool
alTrackedIndexes ICollection
foregroundImage byte
Résultat bool

PollInfraredFrame() public méthode

public PollInfraredFrame ( KinectInterop sensorData ) : bool
sensorData KinectInterop
Résultat bool

SetSpeechConfidence() public méthode

public SetSpeechConfidence ( float fConfidence ) : void
fConfidence float
Résultat void

UpdateBackgroundRemoval() public méthode

public UpdateBackgroundRemoval ( KinectInterop sensorData, bool isHiResPrefered, Color32 defaultColor ) : bool
sensorData KinectInterop
isHiResPrefered bool
defaultColor Color32
Résultat bool

UpdateFaceTracking() public méthode

public UpdateFaceTracking ( ) : bool
Résultat bool

UpdateSensorData() public méthode

public UpdateSensorData ( KinectInterop sensorData ) : bool
sensorData KinectInterop
Résultat bool

UpdateSpeechRecognition() public méthode

public UpdateSpeechRecognition ( ) : int
Résultat int

VisualizeFaceTrackerOnColorTex() public méthode

public VisualizeFaceTrackerOnColorTex ( Texture2D texColor ) : void
texColor Texture2D
Résultat void

Property Details

coordMapper public_oe property

public CoordinateMapper coordMapper
Résultat CoordinateMapper

faceFrameReaders public_oe property

public FaceFrameReader[] faceFrameReaders
Résultat FaceFrameReader[]

faceFrameResults public_oe property

public FaceFrameResult[] faceFrameResults
Résultat FaceFrameResult[]

faceFrameSources public_oe property

public FaceFrameSource[] faceFrameSources
Résultat FaceFrameSource[]

hdFaceAlignments public_oe property

public FaceAlignment[] hdFaceAlignments
Résultat FaceAlignment[]

hdFaceFrameReaders public_oe property

public HighDefinitionFaceFrameReader[] hdFaceFrameReaders
Résultat HighDefinitionFaceFrameReader[]

hdFaceFrameSources public_oe property

public HighDefinitionFaceFrameSource[] hdFaceFrameSources
Résultat HighDefinitionFaceFrameSource[]

hdFaceModels public_oe property

public FaceModel[] hdFaceModels
Résultat FaceModel[]

kinectSensor public_oe property

public KinectSensor kinectSensor
Résultat KinectSensor

sensorAlwaysAvailable public_oe static_oe property

public static bool sensorAlwaysAvailable
Résultat bool