MediaPipeTasksCommon Framework Reference

Classes

The following declarations are available globally.

  • Stores input audio samples in a circular buffer.

    Declaration

    Swift

    final class AudioData
  • Continuously records microphone samples into a thread-safe circular buffer.

    Declaration

    Swift

    final class AudioRecord: Sendable
  • A contiguous buffer of 32-bit floating-point audio samples.

    Declaration

    Swift

    final class FloatBuffer: Equatable
  • Circular floating-point sample buffer retaining the most recent length elements in order.

    Declaration

    Swift

    final class FloatRingBuffer
  • Input image container for on-device MediaPipe Vision Tasks inference.

    MPImage is @unchecked Sendable because all stored properties are let constants and its wrapped UIImage, CVPixelBuffer, and CMSampleBuffer instances are accessed strictly as read-only pixel sources during C MpImage conversion.

    Declaration

    Swift

    final class MPImage: Sendable
  • Single-channel MediaPipe segmentation mask supporting conversion between 0...255 and 0.0...1.0 representations.

    Declaration

    Swift

    final class MPMask: Sendable, Equatable