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 Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2024-08-21 UTC。
[null,null,["最終更新日 2024-08-21 UTC。"],[[["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"]]