GestureRecognizerOptions interface {#gesturerecognizeroptions_interface}

Options to configure the MediaPipe Gesture Recognizer Task

Signature:

export declare interface GestureRecognizerOptions extends VisionTaskOptions 

Properties

Property Modifiers Type Description
numHands number | undefined The maximum number of hands can be detected by the GestureRecognizer. Defaults to 1.
minHandDetectionConfidence number | undefined The minimum confidence score for the hand detection to be considered successful. Defaults to 0.5.
minHandPresenceConfidence number | undefined The minimum confidence score of hand presence score in the hand landmark detection. Defaults to 0.5.
minTrackingConfidence number | undefined The minimum confidence score for the hand tracking to be considered successful. Defaults to 0.5.
cannedGesturesClassifierOptions ClassifierOptions | undefined Sets the optional ClassifierOptions controlling the canned gestures classifier, such as score threshold, allow list and deny list of gestures. The categories for canned gesture classifiers are: ["None", "Closed_Fist", "Open_Palm", "Pointing_Up", "Thumb_Down", "Thumb_Up", "Victory", "ILoveYou"]
customGesturesClassifierOptions ClassifierOptions | undefined Options for configuring the custom gestures classifier, such as score threshold, allow list and deny list of gestures.

GestureRecognizerOptions.numHands {#gesturerecognizeroptionsnumhands}

The maximum number of hands can be detected by the GestureRecognizer. Defaults to 1.

Signature:

numHands?: number | undefined;

GestureRecognizerOptions.minHandDetectionConfidence {#gesturerecognizeroptionsminhanddetectionconfidence}

The minimum confidence score for the hand detection to be considered successful. Defaults to 0.5.

Signature:

minHandDetectionConfidence?: number | undefined;

GestureRecognizerOptions.minHandPresenceConfidence {#gesturerecognizeroptionsminhandpresenceconfidence}

The minimum confidence score of hand presence score in the hand landmark detection. Defaults to 0.5.

Signature:

minHandPresenceConfidence?: number | undefined;

GestureRecognizerOptions.minTrackingConfidence {#gesturerecognizeroptionsmintrackingconfidence}

The minimum confidence score for the hand tracking to be considered successful. Defaults to 0.5.

Signature:

minTrackingConfidence?: number | undefined;

GestureRecognizerOptions.cannedGesturesClassifierOptions {#gesturerecognizeroptionscannedgesturesclassifieroptions}

Sets the optional ClassifierOptions controlling the canned gestures classifier, such as score threshold, allow list and deny list of gestures. The categories for canned gesture classifiers are: ["None", "Closed_Fist", "Open_Palm", "Pointing_Up", "Thumb_Down", "Thumb_Up", "Victory", "ILoveYou"]

Signature:

cannedGesturesClassifierOptions?: ClassifierOptions | undefined;

GestureRecognizerOptions.customGesturesClassifierOptions {#gesturerecognizeroptionscustomgesturesclassifieroptions}

Options for configuring the custom gestures classifier, such as score threshold, allow list and deny list of gestures.

Signature:

customGesturesClassifierOptions?: ClassifierOptions | undefined;