MLKitObjectDetectionCommon フレームワーク リファレンス
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
MLKObjectLabel
@interface MLKObjectLabel : NSObject
画像で検出されたオブジェクトを記述するラベル。
-
ここで返されるテキストは、使用する分類モデルによって異なります。
宣言
Objective-C
@property (nonatomic, copy, readonly) NSString *_Nonnull text;
-
宣言
Objective-C
@property (nonatomic, readonly) NSInteger index;
-
検出されたオブジェクトにラベルが適用される信頼度。範囲は、使用する分類モデルによって異なりますが、慣例では [0, 1] にする必要があります。ObjectDetectorOptions
で作成された ObjectDetector
の場合、範囲は [0, 1] です。
宣言
Objective-C
@property (nonatomic, readonly) float confidence;
-
宣言
Objective-C
- (nonnull instancetype)init;
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2024-11-08 UTC。
[[["わかりやすい","easyToUnderstand","thumb-up"],["問題の解決に役立った","solvedMyProblem","thumb-up"],["その他","otherUp","thumb-up"]],[["必要な情報がない","missingTheInformationINeed","thumb-down"],["複雑すぎる / 手順が多すぎる","tooComplicatedTooManySteps","thumb-down"],["最新ではない","outOfDate","thumb-down"],["翻訳に関する問題","translationIssue","thumb-down"],["サンプル / コードに問題がある","samplesCodeIssue","thumb-down"],["その他","otherDown","thumb-down"]],["最終更新日 2024-11-08 UTC。"],[[["`MLKObjectLabel` provides information about an object detected within an image, including its textual description, index, and confidence score."],["The `text` property describes the detected object, while `index` serves as a unique identifier for the label."],["`confidence` indicates the model's certainty about the label's accuracy, typically ranging from 0 to 1."],["Direct instantiation of `MLKObjectLabel` is prohibited; it is designed for internal use within the ML Kit framework."]]],[]]