# HandLandmarkerOptions

    struct HandLandmarkerOptions: Sendable

Configuration options for the MediaPipe `HandLandmarker` task.
- `
  ### [init(baseOptions:runningMode:numHands:minHandDetectionConfidence:minHandPresenceConfidence:minTrackingConfidence:liveStreamResultHandler:)](https://developers.google.com/edge/api/mediapipe/swift/vision/Structs/HandLandmarkerOptions.md.txt#/s:20MediaPipeTasksVision21HandLandmarkerOptionsV04baseG011runningMode8numHands03minE19DetectionConfidence0me8PresenceO00m8TrackingO023liveStreamResultHandlerAC0abC6Common04BaseG0V_AK0d7RunningJ0OSiS3fys0T0OyAA0efT0Vs5Error_pG_SitYbcSgtcfc)

  ` Creates `HandLandmarkerOptions` with the specified configuration.

  #### Declaration

  Swift

      init(baseOptions: BaseOptions = BaseOptions(), runningMode: VisionRunningMode = .image, numHands: Int = 1, minHandDetectionConfidence: Float = 0.5, minHandPresenceConfidence: Float = 0.5, minTrackingConfidence: Float = 0.5, liveStreamResultHandler: HandLandmarkerOptions.LiveStreamResultHandler? = nil)

- `
  ### [baseOptions](https://developers.google.com/edge/api/mediapipe/swift/vision/Structs/HandLandmarkerOptions.md.txt#/s:20MediaPipeTasksVision21HandLandmarkerOptionsV04baseG00abC6Common04BaseG0Vvp)

  ` Model asset and hardware delegate configuration.

  #### Declaration

  Swift

      var baseOptions: BaseOptions

- `
  ### [liveStreamResultHandler](https://developers.google.com/edge/api/mediapipe/swift/vision/Structs/HandLandmarkerOptions.md.txt#/s:20MediaPipeTasksVision21HandLandmarkerOptionsV23liveStreamResultHandlerys0J0OyAA0efJ0Vs5Error_pG_SitYbcSgvp)

  ` Asynchronous delivery closure required when `runningMode` is `.liveStream`.

  #### Declaration

  Swift

      var liveStreamResultHandler: HandLandmarkerOptions.LiveStreamResultHandler?

- `
  ### [minHandDetectionConfidence](https://developers.google.com/edge/api/mediapipe/swift/vision/Structs/HandLandmarkerOptions.md.txt#/s:20MediaPipeTasksVision21HandLandmarkerOptionsV03minE19DetectionConfidenceSfvp)

  ` Minimum confidence score for palm detection to succeed.

  #### Declaration

  Swift

      var minHandDetectionConfidence: Float

- `
  ### [minHandPresenceConfidence](https://developers.google.com/edge/api/mediapipe/swift/vision/Structs/HandLandmarkerOptions.md.txt#/s:20MediaPipeTasksVision21HandLandmarkerOptionsV03minE18PresenceConfidenceSfvp)

  ` Minimum hand-presence confidence score during landmark regression.

  #### Declaration

  Swift

      var minHandPresenceConfidence: Float

- `
  ### [minTrackingConfidence](https://developers.google.com/edge/api/mediapipe/swift/vision/Structs/HandLandmarkerOptions.md.txt#/s:20MediaPipeTasksVision21HandLandmarkerOptionsV21minTrackingConfidenceSfvp)

  ` Minimum landmark-tracking confidence before re-triggering palm detection on the next frame.

  #### Declaration

  Swift

      var minTrackingConfidence: Float

- `
  ### [numHands](https://developers.google.com/edge/api/mediapipe/swift/vision/Structs/HandLandmarkerOptions.md.txt#/s:20MediaPipeTasksVision21HandLandmarkerOptionsV8numHandsSivp)

  ` Maximum number of hands to detect per frame (must be positive).

  #### Declaration

  Swift

      var numHands: Int

- `
  ### [runningMode](https://developers.google.com/edge/api/mediapipe/swift/vision/Structs/HandLandmarkerOptions.md.txt#/s:20MediaPipeTasksVision21HandLandmarkerOptionsV11runningMode0abC6Common0d7RunningI0Ovp)

  ` Execution mode (`image`, `video`, or `liveStream`).

  #### Declaration

  Swift

      var runningMode: VisionRunningMode

- `
  ### [LiveStreamResultHandler](https://developers.google.com/edge/api/mediapipe/swift/vision/Structs/HandLandmarkerOptions.md.txt#/s:20MediaPipeTasksVision21HandLandmarkerOptionsV23LiveStreamResultHandlera)

  ` Asynchronous callback invoked on a serial queue with live-stream hand landmarking results.

  #### Declaration

  Swift

      typealias LiveStreamResultHandler = @Sendable (Result<HandLandmarkerResult, any Error>, Int) -> Void