MediaPipeTasksVision Framework Reference

HolisticLandmarkerOptions

class HolisticLandmarkerOptions: TaskOptions, NSCopying

Options for setting up a HolisticLandmarker.

  • An object that confirms to HolisticLandmarkerLiveStreamDelegate protocol. This object must implement holisticLandmarker(_:didFinishDetectionWithResult:timestampInMilliseconds:error:) to receive the results of performing asynchronous holistic landmarks detection on images (i.e, when runningMode = .liveStream).

    Declaration

    Swift

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

    Declaration

    Swift

    var minFaceDetectionConfidence: CFloat { get set }
  • The minimum confidence score of face presence score in the face landmark detection. Defaults to 0.5.

    Declaration

    Swift

    var minFacePresenceConfidence: CFloat { get set }
  • The minimum threshold for the face suppression score in the face detection. Defaults to 0.3.

    Declaration

    Swift

    var minFaceSuppressionThreshold: CFloat { get set }
  • The minimum confidence score of hand presence score in the hand landmarks detection. Defaults to 0.5.

    Declaration

    Swift

    var minHandLandmarksConfidence: CFloat { get set }
  • The minimum confidence score for pose detection to be considered successful. Defaults to 0.5.

    Declaration

    Swift

    var minPoseDetectionConfidence: CFloat { get set }
  • The minimum confidence score of pose presence score in the pose landmark detection. Defaults to 0.5.

    Declaration

    Swift

    var minPosePresenceConfidence: CFloat { get set }
  • The minimum non-maximum-suppression threshold for pose detection to be considered overlapped. Defaults to 0.3.

    Declaration

    Swift

    var minPoseSuppressionThreshold: CFloat { get set }
  • Whether FaceLandmarker outputs face blendshapes classification. Face blendshapes are used for rendering the 3D face model.

    Declaration

    Swift

    var outputFaceBlendshapes: Bool { get set }
  • Whether to output segmentation masks. Defaults to false.

    Declaration

    Swift

    var outputPoseSegmentationMasks: Bool { get set }
  • Running mode of the holistic landmarks dection task. Defaults to .image. HolisticLandmarker can be created with one of the following running modes: 1. .image: The mode for performing holistic landmarks detection on single image inputs. 2. .video: The mode for performing holistic landmarks detection on the decoded frames of a video. 3. .liveStream: The mode for performing holistic landmarks detection on a live stream of input data, such as from the camera.

    Declaration

    Swift

    var runningMode: RunningMode { get set }