MLKitImageLabeling 框架参考
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
MLKCommonImageLabelerOptions
@interface MLKCommonImageLabelerOptions : NSObject
图片标记器的选项。
-
图片标记器返回的标签的置信度阈值。返回的标签
图片标记添加者的置信度较高或等于指定阈值。该值必须
是 [0, 1] 范围内的浮点值。此属性无需设置。了解详情
如果未设置 confidenceThreshold
,请参阅子类中的文档
头文件。默认值为 nil
。
声明
Objective-C
@property (nonatomic, nullable) NSNumber *confidenceThreshold;
-
声明
Objective-C
- (nonnull instancetype)init;
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-25。
[null,null,["最后更新时间 (UTC):2025-07-25。"],[[["\u003cp\u003eMLKCommonImageLabelerOptions provides configuration settings for an image labeler, primarily controlling the confidence threshold for label results.\u003c/p\u003e\n"],["\u003cp\u003eThe confidence threshold, ranging from 0 to 1, determines the minimum confidence level required for labels to be returned by the image labeler.\u003c/p\u003e\n"],["\u003cp\u003eWhile the \u003ccode\u003econfidenceThreshold\u003c/code\u003e property is optional, specific behaviors when unset are detailed in subclass documentation; if not explicitly set, it defaults to \u003ccode\u003enil\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eDirect initialization using \u003ccode\u003einit\u003c/code\u003e is unavailable; instead, utilize class methods provided by subclasses to create instances of MLKCommonImageLabelerOptions.\u003c/p\u003e\n"]]],["The `MLKCommonImageLabelerOptions` class configures an image labeler. Key information includes the `confidenceThreshold` property, which filters returned labels based on a minimum confidence level (ranging from 0 to 1). If unset, behavior defaults are defined in subclass headers. The class initializer `-init` is unavailable, requiring use of class methods in subclasses for object creation. This configuration allows control over the confidence required for labels.\n"],null,["# MLKitImageLabeling Framework Reference\n\nMLKCommonImageLabelerOptions\n============================\n\n\n @interface MLKCommonImageLabelerOptions : NSObject\n\nOptions for an image labeler.\n- `\n ``\n ``\n `\n\n ### [confidenceThreshold](#/c:objc(cs)MLKCommonImageLabelerOptions(py)confidenceThreshold)\n\n `\n ` \n The confidence threshold for labels returned by the image labeler. Labels returned by the\n image labeler will have a confidence level higher or equal to the given threshold. The value must\n be a floating-point value in the range \\[0, 1\\]. This property does not need to be set. For details\n on behavior if the `confidenceThreshold` is unset, please refer to documentation in subclass\n header files. The default value is `nil`. \n\n #### Declaration\n\n Objective-C \n\n @property (nonatomic, nullable) NSNumber *confidenceThreshold;\n\n- `\n ``\n ``\n `\n\n ### [-init](#/c:objc(cs)MLKCommonImageLabelerOptions(im)init)\n\n `\n ` \n Unavailable. Use the class methods in subclasses. \n\n #### Declaration\n\n Objective-C \n\n - (nonnull instancetype)init;"]]