VisionOnDeviceAutoMLImageLabelerOptions

class VisionOnDeviceAutoMLImageLabelerOptions : NSObject

Options for an on-device image labeler using models generated by AutoML.

  • The confidence threshold for labels returned by the image labeler. Labels returned by the image labeler will have a confidence level higher or equal to the given threshold. Values must be in range [0, 1]. If unset or an invalid value is set, the default threshold of 0.5 is used. There is no limit on the maximum number of labels returned by an on-device image labeler.

    Declaration

    Swift

    var confidenceThreshold: Float { get set }
  • The name of a model generated by AutoML that’s initially hosted on the server and will be downloaded to the device.

    Declaration

    Swift

    var remoteModelName: String? { get }
  • The name of a model generated by AutoML that is stored locally on the device.

    Declaration

    Swift

    var localModelName: String? { get }
  • Creates a new instance of VisionOnDeviceAutoMLImageLabelerOptions with the given remote and/or local model name(s). At least one model name must be provided. If both remote and local model names are provided, then the remote model takes priority.

    Declaration

    Swift

    init(remoteModelName: String?, localModelName: String?)

    Parameters

    remoteModelName

    The name of a model generated by AutoML that’s initially hosted on the server and will be downloaded to the device. Pass nil if only the provided local model name should be used.

    localModelName

    The name of a model generated by AutoML that is stored locally on the device. Pass nil if only the provided remote model name should be used.

    Return Value

    VisionOnDeviceAutoMLImageLabelerOptions instance with the given remote and/or local model name(s).

  • Unavailable.