AI-generated Key Takeaways
-
MLKCommonImageLabelerOptions provides configuration settings for an image labeler, primarily focusing on the confidence level of labels.
-
The confidenceThreshold property, ranging from 0 to 1, determines the minimum confidence level for labels to be returned by the image labeler.
-
While the confidenceThreshold is optional, specific behavior for unset thresholds is detailed in subclass documentation, with a default value of nil.
-
Direct initialization using -init is unavailable; instead, utilize the designated class methods provided by subclasses for object creation.
MLKCommonImageLabelerOptions
@interface MLKCommonImageLabelerOptions : NSObjectOptions 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
confidenceThresholdis unset, please refer to documentation in subclass header files. The default value isnil.Declaration
Objective-C
@property (nonatomic, nullable) NSNumber *confidenceThreshold; -
Unavailable. Use the class methods in subclasses.
Declaration
Objective-C
- (nonnull instancetype)init;