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. |
handedness | Category[][] | Handedness of detected hands. |
handednesses | Category[][] | Handedness of detected hands. |
landmarks | NormalizedLandmark[][] | Hand landmarks of detected hands. |
worldLandmarks | Landmark[][] | Hand landmarks in world coordinates 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.handedness
Handedness of detected hands.
Signature:
handedness: Category[][];
GestureRecognizerResult.handednesses
Use
.handedness
instead.
Handedness of detected hands.
Signature:
handednesses: Category[][];
GestureRecognizerResult.landmarks
Hand landmarks of detected hands.
Signature:
landmarks: NormalizedLandmark[][];
GestureRecognizerResult.worldLandmarks
Hand landmarks in world coordinates of detected hands.
Signature:
worldLandmarks: Landmark[][];