MLKitImageLabeling 架構參考資料
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
MLKCommonImageLabelerOptions
@interface MLKCommonImageLabelerOptions : NSObject
圖片標籤人員的選項。
-
圖片標籤人員傳回標籤的可信度門檻。由
圖片標籤人員的信賴水準會高於或等於指定門檻。值必須
是 [0, 1] 範圍中的浮點值。此屬性不需要設定。瞭解詳情
未設定 confidenceThreshold
時的行為,請參閱子類別的說明文件
標頭檔案。預設值為 nil
。
聲明
Objective-C
@property (nonatomic, nullable) NSNumber *confidenceThreshold;
-
聲明
Objective-C
- (nonnull instancetype)init;
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-25 (世界標準時間)。
[null,null,["上次更新時間: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;"]]