C# 클래스 Kinect.Kinect2Interface

상속: DepthSensorInterface
파일 보기 프로젝트 열기: BrainProject/UnityTemp

공개 프로퍼티들

프로퍼티 타입 설명
coordMapper CoordinateMapper
faceFrameReaders FaceFrameReader[]
faceFrameResults FaceFrameResult[]
faceFrameSources FaceFrameSource[]
hdFaceAlignments FaceAlignment[]
hdFaceFrameReaders HighDefinitionFaceFrameReader[]
hdFaceFrameSources HighDefinitionFaceFrameSource[]
hdFaceModels FaceModel[]
kinectSensor KinectSensor
sensorAlwaysAvailable bool

공개 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
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

메소드 상세

AddGrammarPhrase() 공개 메소드

public AddGrammarPhrase ( string sFromRule, string sToRule, string sPhrase, bool bClearRulePhrases, bool bCommitGrammar ) : int
sFromRule string
sToRule string
sPhrase string
bClearRulePhrases bool
bCommitGrammar bool
리턴 int

ClearRecognizedPhrase() 공개 메소드

public ClearRecognizedPhrase ( ) : void
리턴 void

CloseSensor() 공개 메소드

public CloseSensor ( KinectInterop sensorData ) : void
sensorData KinectInterop
리턴 void

FinishBackgroundRemoval() 공개 메소드

public FinishBackgroundRemoval ( KinectInterop sensorData ) : void
sensorData KinectInterop
리턴 void

FinishFaceTracking() 공개 메소드

public FinishFaceTracking ( ) : void
리턴 void

FinishSpeechRecognition() 공개 메소드

public FinishSpeechRecognition ( ) : void
리턴 void

FixJointOrientations() 공개 메소드

public FixJointOrientations ( KinectInterop sensorData, KinectInterop &bodyData ) : void
sensorData KinectInterop
bodyData KinectInterop
리턴 void

FreeMultiSourceFrame() 공개 메소드

public FreeMultiSourceFrame ( KinectInterop sensorData ) : void
sensorData KinectInterop
리턴 void

FreeSensorInterface() 공개 메소드

public FreeSensorInterface ( bool bDeleteLibs ) : void
bDeleteLibs bool
리턴 void

GetAnimUnits() 공개 메소드

public GetAnimUnits ( long userId, float>.Dictionary &dictAU ) : bool
userId long
dictAU float>.Dictionary
리턴 bool

GetFaceModelTriangles() 공개 메소드

public GetFaceModelTriangles ( bool bMirrored, int &avTriangles ) : bool
bMirrored bool
avTriangles int
리턴 bool

GetFaceModelTrianglesCount() 공개 메소드

public GetFaceModelTrianglesCount ( ) : int
리턴 int

GetFaceModelVertices() 공개 메소드

public GetFaceModelVertices ( long userId, Vector3 &avVertices ) : bool
userId long
avVertices Vector3
리턴 bool

GetFaceModelVerticesCount() 공개 메소드

public GetFaceModelVerticesCount ( long userId ) : int
userId long
리턴 int

GetFaceRect() 공개 메소드

public GetFaceRect ( long userId, Rect &faceRect ) : bool
userId long
faceRect UnityEngine.Rect
리턴 bool

GetForegroundFrameLength() 공개 메소드

public GetForegroundFrameLength ( KinectInterop sensorData, bool isHiResPrefered ) : int
sensorData KinectInterop
isHiResPrefered bool
리턴 int

GetForegroundFrameRect() 공개 메소드

public GetForegroundFrameRect ( KinectInterop sensorData, bool isHiResPrefered ) : Rect
sensorData KinectInterop
isHiResPrefered bool
리턴 UnityEngine.Rect

GetHeadPosition() 공개 메소드

public GetHeadPosition ( long userId, Vector3 &headPos ) : bool
userId long
headPos Vector3
리턴 bool

GetHeadRotation() 공개 메소드

public GetHeadRotation ( long userId, Quaternion &headRot ) : bool
userId long
headRot UnityEngine.Quaternion
리턴 bool

GetJointIndex() 공개 메소드

public GetJointIndex ( KinectInterop joint ) : int
joint KinectInterop
리턴 int

GetMultiSourceFrame() 공개 메소드

public GetMultiSourceFrame ( KinectInterop sensorData ) : bool
sensorData KinectInterop
리턴 bool

GetNextJoint() 공개 메소드

public GetNextJoint ( KinectInterop joint ) : KinectInterop.JointType
joint KinectInterop
리턴 KinectInterop.JointType

GetParentJoint() 공개 메소드

public GetParentJoint ( KinectInterop joint ) : KinectInterop.JointType
joint KinectInterop
리턴 KinectInterop.JointType

GetPhraseConfidence() 공개 메소드

public GetPhraseConfidence ( ) : float
리턴 float

GetRecognizedPhraseTag() 공개 메소드

public GetRecognizedPhraseTag ( ) : string
리턴 string

GetSensorPlatform() 공개 메소드

public GetSensorPlatform ( ) : KinectInterop.DepthSensorPlatform
리턴 KinectInterop.DepthSensorPlatform

GetSensorsCount() 공개 메소드

public GetSensorsCount ( ) : int
리턴 int

GetShapeUnits() 공개 메소드

public GetShapeUnits ( long userId, float>.Dictionary &dictSU ) : bool
userId long
dictSU float>.Dictionary
리턴 bool

InitBackgroundRemoval() 공개 메소드

public InitBackgroundRemoval ( KinectInterop sensorData, bool isHiResPrefered ) : bool
sensorData KinectInterop
isHiResPrefered bool
리턴 bool

InitFaceTracking() 공개 메소드

public InitFaceTracking ( bool bUseFaceModel, bool bDrawFaceRect ) : bool
bUseFaceModel bool
bDrawFaceRect bool
리턴 bool

InitSensorInterface() 공개 메소드

public InitSensorInterface ( bool bCopyLibs, bool &bNeedRestart ) : bool
bCopyLibs bool
bNeedRestart bool
리턴 bool

InitSpeechRecognition() 공개 메소드

public InitSpeechRecognition ( string sRecoCriteria, bool bUseKinect, bool bAdaptationOff ) : int
sRecoCriteria string
bUseKinect bool
bAdaptationOff bool
리턴 int

IsBRHiResSupported() 공개 메소드

public IsBRHiResSupported ( ) : bool
리턴 bool

IsBackgroundRemovalActive() 공개 메소드

public IsBackgroundRemovalActive ( ) : bool
리턴 bool

IsBackgroundRemovalAvailable() 공개 메소드

public IsBackgroundRemovalAvailable ( bool &bNeedRestart ) : bool
bNeedRestart bool
리턴 bool

IsBodyTurned() 공개 메소드

public IsBodyTurned ( KinectInterop &bodyData ) : bool
bodyData KinectInterop
리턴 bool

IsDrawFaceRect() 공개 메소드

public IsDrawFaceRect ( ) : bool
리턴 bool

IsFaceTracked() 공개 메소드

public IsFaceTracked ( long userId ) : bool
userId long
리턴 bool

IsFaceTrackingActive() 공개 메소드

public IsFaceTrackingActive ( ) : bool
리턴 bool

IsFaceTrackingAvailable() 공개 메소드

public IsFaceTrackingAvailable ( bool &bNeedRestart ) : bool
bNeedRestart bool
리턴 bool

IsPhraseRecognized() 공개 메소드

public IsPhraseRecognized ( ) : bool
리턴 bool

IsSensorAvailable() 공개 메소드

public IsSensorAvailable ( ) : bool
리턴 bool

IsSpeechEnded() 공개 메소드

public IsSpeechEnded ( ) : bool
리턴 bool

IsSpeechRecognitionAvailable() 공개 메소드

public IsSpeechRecognitionAvailable ( bool &bNeedRestart ) : bool
bNeedRestart bool
리턴 bool

IsSpeechStarted() 공개 메소드

public IsSpeechStarted ( ) : bool
리턴 bool

LoadSpeechGrammar() 공개 메소드

public LoadSpeechGrammar ( string sFileName, short iLangCode, bool bDynamic ) : int
sFileName string
iLangCode short
bDynamic bool
리턴 int

MapColorFrameToDepthCoords() 공개 메소드

public MapColorFrameToDepthCoords ( KinectInterop sensorData, Vector2 &vDepthCoords ) : bool
sensorData KinectInterop
vDepthCoords Vector2
리턴 bool

MapDepthFrameToColorCoords() 공개 메소드

public MapDepthFrameToColorCoords ( KinectInterop sensorData, Vector2 &vColorCoords ) : bool
sensorData KinectInterop
vColorCoords Vector2
리턴 bool

MapDepthPointToColorCoords() 공개 메소드

public MapDepthPointToColorCoords ( KinectInterop sensorData, Vector2 depthPos, ushort depthVal ) : Vector2
sensorData KinectInterop
depthPos Vector2
depthVal ushort
리턴 Vector2

MapDepthPointToSpaceCoords() 공개 메소드

public MapDepthPointToSpaceCoords ( KinectInterop sensorData, Vector2 depthPos, ushort depthVal ) : Vector3
sensorData KinectInterop
depthPos Vector2
depthVal ushort
리턴 Vector3

MapSpacePointToDepthCoords() 공개 메소드

public MapSpacePointToDepthCoords ( KinectInterop sensorData, Vector3 spacePos ) : Vector2
sensorData KinectInterop
spacePos Vector3
리턴 Vector2

OpenDefaultSensor() 공개 메소드

public OpenDefaultSensor ( KinectInterop dwFlags, float sensorAngle, bool bUseMultiSource ) : KinectInterop.SensorData
dwFlags KinectInterop
sensorAngle float
bUseMultiSource bool
리턴 KinectInterop.SensorData

PollBodyFrame() 공개 메소드

public PollBodyFrame ( KinectInterop sensorData, KinectInterop &bodyFrame, Matrix4x4 &kinectToWorld ) : bool
sensorData KinectInterop
bodyFrame KinectInterop
kinectToWorld UnityEngine.Matrix4x4
리턴 bool

PollColorFrame() 공개 메소드

public PollColorFrame ( KinectInterop sensorData ) : bool
sensorData KinectInterop
리턴 bool

PollDepthFrame() 공개 메소드

public PollDepthFrame ( KinectInterop sensorData ) : bool
sensorData KinectInterop
리턴 bool

PollForegroundFrame() 공개 메소드

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
리턴 bool

PollInfraredFrame() 공개 메소드

public PollInfraredFrame ( KinectInterop sensorData ) : bool
sensorData KinectInterop
리턴 bool

SetSpeechConfidence() 공개 메소드

public SetSpeechConfidence ( float fConfidence ) : void
fConfidence float
리턴 void

UpdateBackgroundRemoval() 공개 메소드

public UpdateBackgroundRemoval ( KinectInterop sensorData, bool isHiResPrefered, Color32 defaultColor ) : bool
sensorData KinectInterop
isHiResPrefered bool
defaultColor Color32
리턴 bool

UpdateFaceTracking() 공개 메소드

public UpdateFaceTracking ( ) : bool
리턴 bool

UpdateSensorData() 공개 메소드

public UpdateSensorData ( KinectInterop sensorData ) : bool
sensorData KinectInterop
리턴 bool

UpdateSpeechRecognition() 공개 메소드

public UpdateSpeechRecognition ( ) : int
리턴 int

VisualizeFaceTrackerOnColorTex() 공개 메소드

public VisualizeFaceTrackerOnColorTex ( Texture2D texColor ) : void
texColor Texture2D
리턴 void

프로퍼티 상세

coordMapper 공개적으로 프로퍼티

public CoordinateMapper coordMapper
리턴 CoordinateMapper

faceFrameReaders 공개적으로 프로퍼티

public FaceFrameReader[] faceFrameReaders
리턴 FaceFrameReader[]

faceFrameResults 공개적으로 프로퍼티

public FaceFrameResult[] faceFrameResults
리턴 FaceFrameResult[]

faceFrameSources 공개적으로 프로퍼티

public FaceFrameSource[] faceFrameSources
리턴 FaceFrameSource[]

hdFaceAlignments 공개적으로 프로퍼티

public FaceAlignment[] hdFaceAlignments
리턴 FaceAlignment[]

hdFaceFrameReaders 공개적으로 프로퍼티

public HighDefinitionFaceFrameReader[] hdFaceFrameReaders
리턴 HighDefinitionFaceFrameReader[]

hdFaceFrameSources 공개적으로 프로퍼티

public HighDefinitionFaceFrameSource[] hdFaceFrameSources
리턴 HighDefinitionFaceFrameSource[]

hdFaceModels 공개적으로 프로퍼티

public FaceModel[] hdFaceModels
리턴 FaceModel[]

kinectSensor 공개적으로 프로퍼티

public KinectSensor kinectSensor
리턴 KinectSensor

sensorAlwaysAvailable 공개적으로 정적으로 프로퍼티

public static bool sensorAlwaysAvailable
리턴 bool