GestureRecognizerResult interface

Represents the gesture recognition results generated by GestureRecognizer.

Signature:

export declare interface GestureRecognizerResult 

Properties

Property Modifiers Type Description
landmarks NormalizedLandmark[][] Hand landmarks of detected hands.
worldLandmarks Landmark[][] Hand landmarks in world coordinates of detected hands.
handedness Category[][] 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 Category[][] 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.
gestures Category[][] 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.

GestureRecognizerResult.landmarks

Hand landmarks of detected hands.

Signature:

landmarks: NormalizedLandmark[][];

GestureRecognizerResult.worldLandmarks

Hand landmarks in world coordinates of detected hands.

Signature:

worldLandmarks: Landmark[][];

GestureRecognizerResult.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.

Signature:

handedness: Category[][];

GestureRecognizerResult.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.

Signature:

handednesses: Category[][];

GestureRecognizerResult.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.

Signature:

gestures: Category[][];