Visitar URL original
MediaPipeTasksVision Framework Reference  |  Google AI Edge  |  Google for Developers

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
  • Creates a new instance with the specified raw value.

    Declaration

    Swift

    init(rawValue: Int)