MediaPipeTasksRetrieval Framework Reference

BaseOptions

class BaseOptions : NSObject, NSCopying

Holds the base options used for creation of any MediaPipe task, including model asset path and hardware delegate configuration.

  • Path to the model asset file in the app bundle or local storage.

    Declaration

    Swift

    var modelAssetPath: String
  • Hardware acceleration delegate (defaults to .CPU).

    Declaration

    Swift

    var delegate: Delegate