Tài liệu tham khảo khung MLKitDigitalInkRecognition
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.
MLKDigitalInkRecognizerOptions
@interface MLKDigitalInkRecognizerOptions : NSObject
Các tuỳ chọn xác định hành vi của DigitalInkRecognizer
.
-
Mô hình được sử dụng để nhận dạng.
-
Số kết quả nhận dạng tối đa.
Trình nhận dạng sẽ trả về tối đa số kết quả này. Giá trị mặc định là 10. Giá trị nhỏ nhất
là 1.
Khai báo
Objective-C
@property (nonatomic) int maxResultCount;
-
Không dùng được, hãy dùng initWithModel
.
Khai báo
Objective-C
- (nonnull instancetype)init;
-
Tạo một DigitalInkRecognizerOptions
Tham số
model
|
Loại trình nhận dạng. Đây là ví dụ về cách chỉ định ngôn ngữ nhận dạng.
Hãy xem DigitalInkRecognitionModel để biết chi tiết.
|
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: 2024-08-23 UTC.
[[["Dễ hiểu","easyToUnderstand","thumb-up"],["Giúp tôi giải quyết được vấn đề","solvedMyProblem","thumb-up"],["Khác","otherUp","thumb-up"]],[["Thiếu thông tin tôi cần","missingTheInformationINeed","thumb-down"],["Quá phức tạp/quá nhiều bước","tooComplicatedTooManySteps","thumb-down"],["Đã lỗi thời","outOfDate","thumb-down"],["Vấn đề về bản dịch","translationIssue","thumb-down"],["Vấn đề về mẫu/mã","samplesCodeIssue","thumb-down"],["Khác","otherDown","thumb-down"]],["Cập nhật lần gần đây nhất: 2024-08-23 UTC."],[[["`MLKDigitalInkRecognizerOptions` defines the behavior of a `DigitalInkRecognizer`, including the model used and the maximum number of results."],["The `model` property specifies the type of recognizer, such as the language for recognition."],["`maxResultCount` determines the maximum number of recognition results returned, with a default of 10 and a minimum of 1."],["Instances of `MLKDigitalInkRecognizerOptions` should be created using `initWithModel`, providing the desired recognition model."]]],["The `MLKDigitalInkRecognizerOptions` class defines settings for a `DigitalInkRecognizer`. Key properties include: `model`, which specifies the recognition model (e.g., language), and `maxResultCount`, controlling the maximum number of recognition results returned (default 10, minimum 1). The class also provides `initWithModel` for creating an instance, setting the recognition type using `DigitalInkRecognitionModel` and `init` which is unavailable.\n"]]