Tài liệu tham khảo về Khung MLKitImageLabeling
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
MLKCommonImageLabelerOptions
@interface MLKCommonImageLabelerOptions : NSObject
Tuỳ chọn cho công cụ gắn nhãn hình ảnh.
-
Ngưỡng tin cậy cho các nhãn do công cụ gắn nhãn hình ảnh trả về. Nhãn được trả về bởi
công cụ gắn nhãn hình ảnh sẽ có mức độ tin cậy cao hơn hoặc bằng ngưỡng đã cho. Giá trị phải
là một giá trị dấu phẩy động trong khoảng [0, 1]. Bạn không cần đặt thuộc tính này. Để biết thông tin
về hành vi nếu confidenceThreshold
chưa được đặt, vui lòng tham khảo tài liệu trong lớp con
tệp tiêu đề. Giá trị mặc định là nil
.
Khai báo
Objective-C
@property (nonatomic, nullable) NSNumber *confidenceThreshold;
-
Không dùng được. Sử dụng các phương thức của lớp trong lớp con.
Khai báo
Objective-C
- (nonnull instancetype)init;
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2025-07-25 UTC.
[null,null,["Cập nhật lần gần đây nhất: 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;"]]