GestureRecognizerResult

public abstract class GestureRecognizerResult implements TaskResult


Represents the gesture recognition results generated by GestureRecognizer.

Summary

Public constructors

Public methods

abstract List<List<Category>>

Recognized hand gestures of detected hands.

abstract List<List<Category>>

Handedness of detected hands.

List<List<Category>>

This method is deprecated.

Use handedness instead.

abstract List<List<NormalizedLandmark>>

Hand landmarks of detected hands.

abstract long

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

abstract List<List<Landmark>>

Hand landmarks in world coordinates of detected hands.

Public constructors

GestureRecognizerResult

public GestureRecognizerResult()

Public methods

gestures

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.

handedness

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

Handedness of detected hands.

Note: Left and Right handedness correspond to the subject's hands, not the viewer. Passing a horizontally mirrored image will invert these outputs.

handednesses

public List<List<Category>> handednesses()

Handedness of detected hands.

Note: Left and Right handedness correspond to the subject's hands, not the viewer. Passing a horizontally mirrored image will invert these outputs.

landmarks

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

Hand landmarks of detected hands.

timestampMs

public abstract long timestampMs()

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

worldLandmarks

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

Hand landmarks in world coordinates of detected hands.