MLKitObjectDetection フレームワーク リファレンス
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
CommonObjectDetectorOptions
class CommonObjectDetectorOptions : NSObject
すべてのタイプのオブジェクト検出で共有される共通の構成。
-
オブジェクト分類機能が有効かどうかを示します。デフォルト値は false
です。
宣言
Swift
var shouldEnableClassification: Bool { get set }
-
画像またはフレーム内で検出されたすべてのオブジェクトを検出機能で返すかどうかを示します。
false
に設定すると、検出機能は検出された最も目立つオブジェクトのみを返します。デフォルト値は false
です。
宣言
Swift
var shouldEnableMultipleObjects: Bool { get set }
-
-
使用できません。サブクラスでクラスメソッドを使用します。
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2024-08-29 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-08-29 UTC。"],[[["`CommonObjectDetectorOptions` provides common configurations for all types of object detectors."],["It allows enabling or disabling object classification and multiple object detection."],["It offers a detector mode setting with a default stream mode."],["The initializer is unavailable; use class methods in subclasses instead."]]],["The `CommonObjectDetectorOptions` class configures object detectors. Key settings include `shouldEnableClassification`, which activates object classification (default: `false`), and `shouldEnableMultipleObjects`, which controls whether multiple objects are returned or just the most prominent one (default: `false`). `detectorMode` sets the detector's operational mode (default: `stream`). Initialization is unavailable, requiring the use of subclass methods. These options allow customization of the object detection process.\n"]]