MediaPipeTasksVision Framework Reference

Structures

The following declarations are available globally.

  • Configuration options for initializing a MediaPipe FaceDetector task.

    Does not conform to Equatable or Hashable because liveStreamResultHandler is a closure.

    Declaration

    Swift

    struct FaceDetectorOptions: Sendable
  • Detection results produced by FaceDetector for a single image or frame.

    Declaration

    Swift

    struct FaceDetectorResult: Sendable, Equatable, Hashable
  • Options for configuring a FaceLandmarker task (not Equatable because liveStreamResultHandler is a closure).

    Declaration

    Swift

    struct FaceLandmarkerOptions: Sendable
  • Face landmarks, blendshapes, and transformation matrixes produced by FaceLandmarker, with one element per detected face.

    Declaration

    Swift

    struct FaceLandmarkerResult: Sendable, Equatable, Hashable
  • Configuration for initializing a GestureRecognizer.

    Not Equatable or Hashable because liveStreamResultHandler is a closure.

    Declaration

    Swift

    struct GestureRecognizerOptions: Sendable
  • Hand gesture, handedness, and 3D landmark predictions produced by GestureRecognizer.

    Declaration

    Swift

    struct GestureRecognizerResult: Sendable, Equatable, Hashable
  • Configuration options for the MediaPipe HandLandmarker task.

    Declaration

    Swift

    struct HandLandmarkerOptions: Sendable
  • Hand landmarks, 3D world landmarks, and handedness classifications produced by HandLandmarker.

    Declaration

    Swift

    struct HandLandmarkerResult: Sendable, Equatable, Hashable
  • Configuration options for initializing a MediaPipe HolisticLandmarker task.

    Not Equatable or Hashable because liveStreamResultHandler is a closure.

    Declaration

    Swift

    struct HolisticLandmarkerOptions: Sendable
  • Holistic face, pose, and hand landmarks detected by HolisticLandmarker (not Hashable because MPMask conforms only to Equatable).

    Declaration

    Swift

    struct HolisticLandmarkerResult: Sendable, Equatable
  • Configuration for initializing an ImageClassifier.

    Not Equatable or Hashable because liveStreamResultHandler is a closure.

    Declaration

    Swift

    struct ImageClassifierOptions: Sendable
  • Output of an ImageClassifier inference pass on a single image or video frame.

    Declaration

    Swift

    struct ImageClassifierResult: Sendable, Equatable, Hashable
  • Configuration for an ImageEmbedder instance.

    Not Equatable or Hashable because liveStreamResultHandler is a closure.

    Declaration

    Swift

    struct ImageEmbedderOptions: Sendable
  • Feature vectors produced across all output heads of an image embedding model.

    Declaration

    Swift

    struct ImageEmbedderResult: Sendable, Equatable, Hashable
  • Options for configuring an ImageSegmenter task.

    Not Equatable or Hashable because liveStreamResultHandler is a closure.

    Declaration

    Swift

    struct ImageSegmenterOptions: Sendable
  • Segmentation masks and quality scores produced by ImageSegmenter.

    Not Hashable because MPMask is only Equatable.

    Declaration

    Swift

    struct ImageSegmenterResult: Sendable, Equatable
  • Options for configuring an InteractiveSegmenterLegacy task.

    Declaration

    Swift

    struct InteractiveSegmenterLegacyOptions: Sendable, Equatable, Hashable
  • Options for configuring an InteractiveSegmenter task.

    Declaration

    Swift

    struct InteractiveSegmenterOptions: Sendable, Equatable, Hashable
  • Configuration options for the MediaPipe ObjectDetector task.

    Conforms to Sendable (Equatable and Hashable are omitted because liveStreamResultHandler is an escaping closure).

    Declaration

    Swift

    struct ObjectDetectorOptions: Sendable
  • Bounding-box detections and categories produced by ObjectDetector.

    Declaration

    Swift

    struct ObjectDetectorResult: Sendable, Equatable, Hashable
  • Configuration options for initializing a PoseLandmarker.

    Not Equatable or Hashable because liveStreamResultHandler is an escaping closure.

    Declaration

    Swift

    struct PoseLandmarkerOptions: Sendable
  • Pose landmarks, world landmarks, and optional segmentation masks produced by PoseLandmarker.

    Declaration

    Swift

    struct PoseLandmarkerResult: Sendable, Equatable
  • A single user-drawn stroke for interactive image segmentation.

    Declaration

    Swift

    struct Stroke: Sendable, Equatable, Hashable
  • A dense matrix of Float values stored in column-major order.

    Declaration

    Swift

    struct TransformMatrix: Sendable, Equatable, Hashable