MLKitImageLabelingAutoML Framework Reference

AutoMLImageLabelerOptions

class AutoMLImageLabelerOptions : CommonImageLabelerOptions

Options for an image labeler using models generated by AutoML.

  • Creates a new instance of AutoMLImageLabelerOptions with the given localModel with the confidenceThreshold property set to nil. If it remains unset, a default confidence threshold value of 0.5 will be used.

    Declaration

    Swift

    init(localModel: MLKAutoMLImageLabelerLocalModel)

    Parameters

    localModel

    The AutoML Vision Edge model stored locally on the device. If nil is passed, raises MLKInvalidAutoMLLocalModel.

    Return Value

    AutoMLImageLabelerOptions instance with the given localModel.

  • Creates a new instance of AutoMLImageLabelerOptions with the given remoteModel with the confidenceThreshold property set to nil. If it remains unset, a default confidence threshold value of 0.5 will be used.

    It is recommended that the AutoMLRemoteModel be downloaded before creating a new instance of AutoMLImageLabeler. To download the remote model, invoke the ModelManager‘s download(_:conditions:) method and monitor the returned Progress and/or listen for the download notifications defined in MLKModelDownloadNotifications.h.

    Declaration

    Swift

    init(remoteModel: MLKAutoMLImageLabelerRemoteModel)

    Parameters

    remoteModel

    The AutoML Vision Edge model hosted on the server. If nil is passed, raises MLKInvalidAutoMLRemoteModel.

    Return Value

    AutoMLImageLabelerOptions instance with the given remoteModel.

  • Unavailable.