FIRVisionLabelDetectorOptions


@interface FIRVisionLabelDetectorOptions : 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

    Objective-C

    @property (readonly, nonatomic) float confidenceThreshold;
  • Creates a new instance with the given detector options.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithConfidenceThreshold:(float)confidenceThreshold;

    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.

    Declaration

    Objective-C

    - (nonnull instancetype)init;