# FaceLandmarkerOptions

    class FaceLandmarkerOptions: TaskOptions, NSCopying

Options for setting up a `FaceLandmarker`.
- `
  ### [faceLandmarkerLiveStreamDelegate](https://developers.google.com/edge/api/mediapipe/swift/vision/Classes/FaceLandmarkerOptions.md.txt#/c:objc(cs)MPPFaceLandmarkerOptions(py)faceLandmarkerLiveStreamDelegate)

  ` An object that confirms to `FaceLandmarkerLiveStreamDelegate` protocol. This object must implement `faceLandmarker(_:didFinishDetectionWithResult:timestampInMilliseconds:error:)` to receive the results of performing asynchronous face landmark detection on images (i.e, when `runningMode` = `.liveStream`).

  #### Declaration

  Swift

      weak var faceLandmarkerLiveStreamDelegate: (any FaceLandmarkerLiveStreamDelegate)? { get set }

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

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

  #### Declaration

  Swift

      var minFaceDetectionConfidence: Float { get set }

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

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

  #### Declaration

  Swift

      var minFacePresenceConfidence: Float { get set }

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

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

  #### Declaration

  Swift

      var minTrackingConfidence: Float { get set }

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

  ` The maximum number of faces can be detected by the FaceLandmarker. Defaults to 1.

  #### Declaration

  Swift

      var numFaces: Int { get set }

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

  ` Whether FaceLandmarker outputs face blendshapes classification. Face blendshapes are used for rendering the 3D face model. Note: \*Left and \*Right blendshapes correspond to the subject's face, not the viewer. Passing a horizontally mirrored image will invert these outputs.

  #### Declaration

  Swift

      var outputFaceBlendshapes: Bool { get set }

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

  ` Whether FaceLandmarker outputs facial transformation_matrix. Facial transformation matrix is used to transform the face landmarks in canonical face to the detected face, so that users can apply face effects on the detected landmarks.

  #### Declaration

  Swift

      var outputFacialTransformationMatrixes: Bool { get set }

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

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

  #### Declaration

  Swift

      var runningMode: RunningMode { get set }