MediaPipeTasksVision Framework Reference

MPImageSourceType

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

Types of image sources.

  • Image source is a UIImage.

    Declaration

    Swift

    static var image: MPImageSourceType { get }
  • Image source is a CVPixelBuffer.

    Declaration

    Swift

    static var pixelBuffer: MPImageSourceType { get }
  • Image source is a CMSampleBuffer.

    Declaration

    Swift

    static var sampleBuffer: MPImageSourceType { get }
  • Declaration

    Swift

    init(rawValue: Int)