مرجع إطار عمل MLKitObjectDetectionCommon
تنظيم صفحاتك في مجموعات
يمكنك حفظ المحتوى وتصنيفه حسب إعداداتك المفضّلة.
MLKCommonObjectDetectorOptions
@interface MLKCommonObjectDetectorOptions : NSObject
الإعدادات الشائعة التي تشاركها جميع أنواع أدوات رصد العناصر.
-
يشير إلى ما إذا كانت ميزة تصنيف الكائنات مفعَّلة. تكون القيمة التلقائية false
.
بيان الإفصاح
Objective-C
@property (nonatomic) BOOL shouldEnableClassification;
-
يشير إلى ما إذا كان يجب أن يعرض أداة الكشف جميع الأجسام التي تم رصدها في الصورة أو الإطار.
في حال ضبط هذه السياسة على false
، تعرض أداة الكشف العناصر الأكثر بروزًا فقط. الإعداد التلقائي
هي false
.
بيان الإفصاح
Objective-C
@property (nonatomic) BOOL shouldEnableMultipleObjects;
-
وضع أداة رصد الكائنات تكون القيمة التلقائية .stream
.
-
غير متاح: استخدم طرق الفئة في الفئات الفرعية.
بيان
Objective-C
- (nonnull instancetype)init;
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2024-09-20 (حسب التوقيت العالمي المتفَّق عليه)
[[["يسهُل فهم المحتوى.","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-09-20 (حسب التوقيت العالمي المتفَّق عليه)"],[[["MLKCommonObjectDetectorOptions provides configuration settings for object detection tasks, impacting classification, multiple object detection, and detector mode."],["By default, object classification is disabled, and the detector returns only the most prominent object, operating in stream mode."],["Developers can enable classification and multiple object detection and choose between different detector modes using properties like shouldEnableClassification, shouldEnableMultipleObjects, and detectorMode."],["Direct initialization using -init is unavailable; instead, utilize class methods provided by subclasses to create instances of MLKCommonObjectDetectorOptions."]]],["`MLKCommonObjectDetectorOptions` configures object detectors, offering properties to customize their behavior. `shouldEnableClassification` (default: `false`) enables object classification. `shouldEnableMultipleObjects` (default: `false`) controls whether all or only the most prominent object is returned. `detectorMode` (default: `.stream`) defines the detector's operational mode. The standard initializer `init` is unavailable; subclasses' class methods should be used instead.\n"]]