VisionLabelDetectorOptions

class VisionLabelDetectorOptions : NSObject

Options for an image label detector.

  • The confidence threshold for labels returned by the label detector. Features returned by the label detector will have a confidence higher or equal to the confidence threshold. Default value is 0.5.

    Declaration

    Swift

    var confidenceThreshold: Float { get }
  • Creates a new instance with the given detector options.

    Declaration

    Swift

    init(confidenceThreshold: Float)

    Parameters

    confidenceThreshold

    The confidence threshold for labels returned by the label detector. Features returned by the label detector will have a confidence higher or equal to the given threshold. Values must be in range [0, 1]. If an invalid value is provided, the default threshold of 0.5 is used.

    Return Value

    Label detector options.

  • Unavailable.