Skip to main content
Version: 21 Aug 2024

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

TypeNameDescription
InputDevicehandDevice
out FingerAngleDegallFingerAnglesThe Angles between two fingers in degrees.

bool TryGetFingerState

public static bool TryGetFingerState(
InputDevice handDevice,
FingerType finger,
out FingerState fingerStateData
)

Parameters

TypeNameDescription
InputDevicehandDevice
FingerTypefinger
out FingerStatefingerStateDataGesture classification state of a single finger.

bool TryGetHandKeyPose

public static bool TryGetHandKeyPose(
InputDevice handDevice,
out KeyPoseType KeyPose
)

Parameters

TypeNameDescription
InputDevicehandDevice
out KeyPoseTypeKeyPose

bool TryGetHandPosture

public static bool TryGetHandPosture(
InputDevice handDevice,
out PostureType Posture
)

Parameters

TypeNameDescription
InputDevicehandDevice
out PostureTypePosture

Public Attributes

LeftGestureInputDeviceName


public const string LeftGestureInputDeviceName = "MagicLeapHandGesture - Left";


RightGestureInputDeviceName


public const string RightGestureInputDeviceName = "MagicLeapHandGesture - Right";


Public Enums

FingerType

EnumeratorValueDescription
Thumb0
Index
Middle
Ring
Pinky

KeyPoseType

EnumeratorValueDescription
None
OK
C
Pinch
Finger
L
Thumb
Fist
Open

PostureType

EnumeratorValueDescription
None
Pinch
Point
Grasp
Open