MediaPipeTasksVision Framework Reference

HolisticLandmarkerOptions

class HolisticLandmarkerOptions : TaskOptions, NSCopying

Options for configuring a HolisticLandmarker instance.

  • Running mode of the holistic landmarker task (.image, .video, or .liveStream). Defaults to .image.

    Declaration

    Swift

    var runningMode: RunningMode { get set }
  • An object conforming to HolisticLandmarkerLiveStreamDelegate that receives asynchronous detection results in .liveStream mode.

    Declaration

    Swift

    weak var holisticLandmarkerLiveStreamDelegate: (any HolisticLandmarkerLiveStreamDelegate)? { get set }
  • Minimum confidence score for face detection to be considered successful. Defaults to 0.5.

    Declaration

    Swift

    var minFaceDetectionConfidence: Float { get set }
  • Minimum non-maximum-suppression threshold for face detection. Defaults to 0.3.

    Declaration

    Swift

    var minFaceSuppressionThreshold: Float { get set }
  • Minimum confidence score of face presence in face landmark detection. Defaults to 0.5.

    Declaration

    Swift

    var minFacePresenceConfidence: Float { get set }
  • Minimum confidence score for pose detection to be considered successful. Defaults to 0.5.

    Declaration

    Swift

    var minPoseDetectionConfidence: Float { get set }
  • Minimum non-maximum-suppression threshold for pose detection. Defaults to 0.3.

    Declaration

    Swift

    var minPoseSuppressionThreshold: Float { get set }
  • Minimum confidence score of pose presence in pose landmark detection. Defaults to 0.5.

    Declaration

    Swift

    var minPosePresenceConfidence: Float { get set }
  • Minimum confidence score of hand presence in hand landmarks detection. Defaults to 0.5.

    Declaration

    Swift

    var minHandLandmarksConfidence: Float { get set }
  • Whether HolisticLandmarker outputs 52 face blendshape coefficients. Defaults to false.

    Declaration

    Swift

    var outputFaceBlendshapes: Bool { get set }
  • Whether to output a segmentation mask for the detected pose. Defaults to false.

    Declaration

    Swift

    var outputPoseSegmentationMasks: Bool { get set }