# GestureRecognizerOptions

    class GestureRecognizerOptions: TaskOptions, NSCopying

Options for setting up a `GestureRecognizer`.
- `
  ### [cannedGesturesClassifierOptions](https://developers.google.com/edge/api/mediapipe/swift/vision/Classes/GestureRecognizerOptions.md.txt#/c:objc(cs)MPPGestureRecognizerOptions(py)cannedGesturesClassifierOptions)

  ` 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"\].

  TODO: Note this option is subject to change, after scoring merging calculator is implemented.

  #### Declaration

  Swift

      @NSCopying var cannedGesturesClassifierOptions: ClassifierOptions? { get set }

- `
  ### [customGesturesClassifierOptions](https://developers.google.com/edge/api/mediapipe/swift/vision/Classes/GestureRecognizerOptions.md.txt#/c:objc(cs)MPPGestureRecognizerOptions(py)customGesturesClassifierOptions)

  ` Sets the optional `ClassifierOptions` controlling the custom gestures classifier, such as score threshold, allow list and deny list of gestures.

  TODO: Note this option is subject to change, after scoring merging calculator is implemented.

  #### Declaration

  Swift

      @NSCopying var customGesturesClassifierOptions: ClassifierOptions? { get set }

- `
  ### [gestureRecognizerLiveStreamDelegate](https://developers.google.com/edge/api/mediapipe/swift/vision/Classes/GestureRecognizerOptions.md.txt#/c:objc(cs)MPPGestureRecognizerOptions(py)gestureRecognizerLiveStreamDelegate)

  ` An object that confirms to `GestureRecognizerLiveStreamDelegate` protocol. This object must implement `gestureRecognizer(_:didFinishRecognitionWithResult:timestampInMilliseconds:error:)` to receive the results of performing asynchronous gesture recognition on images (i.e, when `runningMode` = `.liveStream`).

  #### Declaration

  Swift

      weak var gestureRecognizerLiveStreamDelegate: (any GestureRecognizerLiveStreamDelegate)? { get set }

- `
  ### [minHandDetectionConfidence](https://developers.google.com/edge/api/mediapipe/swift/vision/Classes/GestureRecognizerOptions.md.txt#/c:objc(cs)MPPGestureRecognizerOptions(py)minHandDetectionConfidence)

  ` Sets minimum confidence score for the hand detection to be considered successful

  #### Declaration

  Swift

      var minHandDetectionConfidence: Float { get set }

- `
  ### [minHandPresenceConfidence](https://developers.google.com/edge/api/mediapipe/swift/vision/Classes/GestureRecognizerOptions.md.txt#/c:objc(cs)MPPGestureRecognizerOptions(py)minHandPresenceConfidence)

  ` Sets minimum confidence score of hand presence score in the hand landmark detection.

  #### Declaration

  Swift

      var minHandPresenceConfidence: Float { get set }

- `
  ### [minTrackingConfidence](https://developers.google.com/edge/api/mediapipe/swift/vision/Classes/GestureRecognizerOptions.md.txt#/c:objc(cs)MPPGestureRecognizerOptions(py)minTrackingConfidence)

  ` Sets the minimum confidence score for the hand tracking to be considered successful.

  #### Declaration

  Swift

      var minTrackingConfidence: Float { get set }

- `
  ### [numHands](https://developers.google.com/edge/api/mediapipe/swift/vision/Classes/GestureRecognizerOptions.md.txt#/c:objc(cs)MPPGestureRecognizerOptions(py)numHands)

  ` Sets the maximum number of hands can be detected by the GestureRecognizer.

  #### Declaration

  Swift

      var numHands: Int { get set }

- `
  ### [runningMode](https://developers.google.com/edge/api/mediapipe/swift/vision/Classes/GestureRecognizerOptions.md.txt#/c:objc(cs)MPPGestureRecognizerOptions(py)runningMode)

  ` Running mode of the gesture recognizer task. Defaults to `.video`. `GestureRecognizer` can be created with one of the following running modes: 1. `image`: The mode for performing gesture recognition on single image inputs. 2. `video`: The mode for performing gesture recognition on the decoded frames of a video. 3. `liveStream`: The mode for performing gesture recognition on a live stream of input data, such as from the camera.

  #### Declaration

  Swift

      var runningMode: RunningMode { get set }