MLKitImageLabeling Framework Reference

  • CommonImageLabelerOptions provides configuration settings for image labelers.

  • It allows setting a confidenceThreshold to filter returned labels based on their confidence level, with a default value of nil resulting in subclass-specific behavior.

  • Initialization is done through subclass methods, direct initialization with init is unavailable.

CommonImageLabelerOptions

class CommonImageLabelerOptions : NSObject

Options for an image labeler.

  • 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. The value must be a floating-point value in the range [0, 1]. This property does not need to be set. For details on behavior if the confidenceThreshold is unset, please refer to documentation in subclass header files. The default value is nil.

    Declaration

    Swift

    var confidenceThreshold: NSNumber? { get set }
  • Unavailable. Use the class methods in subclasses.