<br />

Options to configure the MediaPipe Gesture Recognizer Task

**Signature:**

    export declare interface GestureRecognizerOptions extends VisionTaskOptions 

## Properties

| Property | Modifiers | Type | Description |
|---|---|---|---|
| [numHands](https://developers.google.com/edge/api/mediapipe/js/tasks-vision.gesturerecognizeroptions#gesturerecognizeroptionsnumhands) |   | number \| undefined | The maximum number of hands can be detected by the GestureRecognizer. Defaults to 1. |
| [minHandDetectionConfidence](https://developers.google.com/edge/api/mediapipe/js/tasks-vision.gesturerecognizeroptions#gesturerecognizeroptionsminhanddetectionconfidence) |   | number \| undefined | The minimum confidence score for the hand detection to be considered successful. Defaults to 0.5. |
| [minHandPresenceConfidence](https://developers.google.com/edge/api/mediapipe/js/tasks-vision.gesturerecognizeroptions#gesturerecognizeroptionsminhandpresenceconfidence) |   | number \| undefined | The minimum confidence score of hand presence score in the hand landmark detection. Defaults to 0.5. |
| [minTrackingConfidence](https://developers.google.com/edge/api/mediapipe/js/tasks-vision.gesturerecognizeroptions#gesturerecognizeroptionsmintrackingconfidence) |   | number \| undefined | The minimum confidence score for the hand tracking to be considered successful. Defaults to 0.5. |
| [cannedGesturesClassifierOptions](https://developers.google.com/edge/api/mediapipe/js/tasks-vision.gesturerecognizeroptions#gesturerecognizeroptionscannedgesturesclassifieroptions) |   | 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](https://developers.google.com/edge/api/mediapipe/js/tasks-vision.gesturerecognizeroptions#gesturerecognizeroptionscustomgesturesclassifieroptions) |   | 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;