MLGestureClassification
Public Methods
void StartTracking
public static void StartTracking()
void StopTracking
public static void StopTracking()
bool TryGetFingerAngles
public static bool TryGetFingerAngles(
InputDevice handDevice,
out FingerAngleDeg allFingerAngles
)
Parameters
Type | Name | Description |
---|---|---|
InputDevice | handDevice | |
out FingerAngleDeg | allFingerAngles | The Angles between two fingers in degrees. |
bool TryGetFingerState
public static bool TryGetFingerState(
InputDevice handDevice,
FingerType finger,
out FingerState fingerStateData
)
Parameters
Type | Name | Description |
---|---|---|
InputDevice | handDevice | |
FingerType | finger | |
out FingerState | fingerStateData | Gesture classification state of a single finger. |
bool TryGetHandKeyPose
public static bool TryGetHandKeyPose(
InputDevice handDevice,
out KeyPoseType KeyPose
)
Parameters
Type | Name | Description |
---|---|---|
InputDevice | handDevice | |
out KeyPoseType | KeyPose |
bool TryGetHandPosture
public static bool TryGetHandPosture(
InputDevice handDevice,
out PostureType Posture
)
Parameters
Type | Name | Description |
---|---|---|
InputDevice | handDevice | |
out PostureType | Posture |
Public Attributes
LeftGestureInputDeviceName
public const string LeftGestureInputDeviceName = "MagicLeapHandGesture - Left";
RightGestureInputDeviceName
public const string RightGestureInputDeviceName = "MagicLeapHandGesture - Right";
Public Enums
FingerType
Enumerator | Value | Description |
---|---|---|
Thumb | 0 | |
Index | ||
Middle | ||
Ring | ||
Pinky |
KeyPoseType
Enumerator | Value | Description |
---|---|---|
None | ||
OK | ||
C | ||
Pinch | ||
Finger | ||
L | ||
Thumb | ||
Fist | ||
Open |
PostureType
Enumerator | Value | Description |
---|---|---|
None | ||
Pinch | ||
Point | ||
Grasp | ||
Open |