MediaPipeTasksVision Framework Reference

MPImageSourceType

struct MPImageSourceType: Hashable, Equatable, RawRepresentable, Sendable, BitwiseCopyable

Types of image sources.

  • Image source is a UIImage.

    Declaration

    Swift

    static let image: MPImageSourceType
  • Image source is a CVPixelBuffer.

    Declaration

    Swift

    static let pixelBuffer: MPImageSourceType
  • Image source is a CMSampleBuffer.

    Declaration

    Swift

    static let sampleBuffer: MPImageSourceType
  • Declaration

    Swift

    init(rawValue: Int)