MLKitImageLabeling 架構參考資料

MLKCommonImageLabelerOptions


@interface MLKCommonImageLabelerOptions : NSObject

圖片標籤人員的選項。

  • 圖片標籤工具傳回的標籤可信度門檻。圖片標籤人員傳回的標籤的信賴水準會高於或等於指定的門檻。這個值必須是 [0, 1] 範圍中的浮點值。您不一定要設定這項屬性。如要進一步瞭解未設定 confidenceThreshold 時的行為,請參閱子類別標頭檔案中的說明文件。預設值為 nil

    聲明

    Objective-C

    @property (nonatomic, nullable) NSNumber *confidenceThreshold;
  • 無法使用,在子類別中使用類別方法。

    聲明

    Objective-C

    - (nonnull instancetype)init;