GestureRecognizerResult

public abstract class GestureRecognizerResult

Represents the gesture recognition results generated by GestureRecognizer.

Public Constructors

Public Methods

abstract List<List<Category>>
gestures()
Recognized hand gestures of detected hands.
abstract List<List<Category>>
handedness()
Handedness of detected hands.
List<List<Category>>
handednesses()
This method is deprecated. Use handedness() instead.
abstract List<List<NormalizedLandmark>>
landmarks()
Hand landmarks of detected hands.
abstract long
timestampMs()
Returns the timestamp that is associated with the task result object.
abstract List<List<Landmark>>
worldLandmarks()
Hand landmarks in world coordinates of detected hands.

Inherited Methods

boolean
equals(Object arg0)
final Class<?>
getClass()
int
hashCode()
final void
notify()
final void
notifyAll()
String
toString()
final void
wait(long arg0, int arg1)
final void
wait(long arg0)
final void
wait()
com.google.mediapipe.tasks.core.TaskResult
abstract long
timestampMs()
Returns the timestamp that is associated with the task result object.

Public Constructors

public GestureRecognizerResult ()

Public Methods

public abstract List<List<Category>> gestures ()

Recognized hand gestures of detected hands. Note that the index of the gesture is always -1, because the raw indices from multiple gesture classifiers cannot consolidate to a meaningful index.

public abstract List<List<Category>> handedness ()

Handedness of detected hands.

public List<List<Category>> handednesses ()

This method is deprecated.
Use handedness() instead.

Handedness of detected hands.

public abstract List<List<NormalizedLandmark>> landmarks ()

Hand landmarks of detected hands.

public abstract long timestampMs ()

Returns the timestamp that is associated with the task result object.

public abstract List<List<Landmark>> worldLandmarks ()

Hand landmarks in world coordinates of detected hands.