HandGestureRecognizer class

Converts raw HandState poses into debounced semantic gesture events.

A gesture must hold steady for minHoldDuration before it is emitted, which suppresses single-frame false positives from the ML detector.

Constructors

HandGestureRecognizer({Duration minHoldDuration = const Duration(milliseconds: 80), void onGesture(HandGestureEvent event)?})

Properties

hashCode int
The hash code for this object.
no setterinherited
minHoldDuration Duration
Minimum time a pose must persist before its event fires.
getter/setter pair
onGesture ↔ void Function(HandGestureEvent event)?
Called for each recognized gesture event.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

dispose() → void
evaluate(ControllerHand hand, HandState state) → void
Evaluates the current pose of state each tracking frame.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
reset() → void
Clears all debounce state.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited