Attention: This MediaPipe Solutions Preview is an early release. Learn more.

GestureRecognizerResult interface

Stay organized with collections Save and categorize content based on your preferences.

Represents the gesture recognition results generated by GestureRecognizer.

Signature:

export declare interface GestureRecognizerResult 

Properties

Property Type Description
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.
handednesses Category[][] Handedness of detected hands.
landmarks NormalizedLandmark[][] Hand landmarks of detected hands.
worldLandmarks Landmark[][] Hand landmarks in world coordniates of detected hands.

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[][];

GestureRecognizerResult.handednesses

Handedness of detected hands.

Signature:

handednesses: Category[][];

GestureRecognizerResult.landmarks

Hand landmarks of detected hands.

Signature:

landmarks: NormalizedLandmark[][];

GestureRecognizerResult.worldLandmarks

Hand landmarks in world coordniates of detected hands.

Signature:

worldLandmarks: Landmark[][];