ข้อมูลอ้างอิงเฟรมเวิร์ก 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 และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-25 UTC
[null,null,["อัปเดตล่าสุด 2025-07-25 UTC"],[[["\u003cp\u003eMLKCommonImageLabelerOptions provides configuration settings for an image labeler, primarily controlling the confidence threshold for label results.\u003c/p\u003e\n"],["\u003cp\u003eThe confidence threshold, ranging from 0 to 1, determines the minimum confidence level required for labels to be returned by the image labeler.\u003c/p\u003e\n"],["\u003cp\u003eWhile the \u003ccode\u003econfidenceThreshold\u003c/code\u003e property is optional, specific behaviors when unset are detailed in subclass documentation; if not explicitly set, it defaults to \u003ccode\u003enil\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eDirect initialization using \u003ccode\u003einit\u003c/code\u003e is unavailable; instead, utilize class methods provided by subclasses to create instances of MLKCommonImageLabelerOptions.\u003c/p\u003e\n"]]],["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"],null,["# MLKitImageLabeling Framework Reference\n\nMLKCommonImageLabelerOptions\n============================\n\n\n @interface MLKCommonImageLabelerOptions : NSObject\n\nOptions for an image labeler.\n- `\n ``\n ``\n `\n\n ### [confidenceThreshold](#/c:objc(cs)MLKCommonImageLabelerOptions(py)confidenceThreshold)\n\n `\n ` \n The confidence threshold for labels returned by the image labeler. Labels returned by the\n image labeler will have a confidence level higher or equal to the given threshold. The value must\n be a floating-point value in the range \\[0, 1\\]. This property does not need to be set. For details\n on behavior if the `confidenceThreshold` is unset, please refer to documentation in subclass\n header files. The default value is `nil`. \n\n #### Declaration\n\n Objective-C \n\n @property (nonatomic, nullable) NSNumber *confidenceThreshold;\n\n- `\n ``\n ``\n `\n\n ### [-init](#/c:objc(cs)MLKCommonImageLabelerOptions(im)init)\n\n `\n ` \n Unavailable. Use the class methods in subclasses. \n\n #### Declaration\n\n Objective-C \n\n - (nonnull instancetype)init;"]]