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 和/或其關聯企業的註冊商標。
上次更新時間:2024-08-21 (世界標準時間)。
[null,null,["上次更新時間:2024-08-21 (世界標準時間)。"],[[["MLKCommonImageLabelerOptions provides configuration settings for an image labeler, primarily controlling the confidence threshold for label results."],["The confidence threshold, ranging from 0 to 1, determines the minimum confidence level required for labels to be returned by the image labeler."],["While the `confidenceThreshold` property is optional, specific behaviors when unset are detailed in subclass documentation; if not explicitly set, it defaults to `nil`."],["Direct initialization using `init` is unavailable; instead, utilize class methods provided by subclasses to create instances of MLKCommonImageLabelerOptions."]]],["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"]]