MLKitDigitalInkRecognition Framework Reference
Stay organized with collections
Save and categorize content based on your preferences.
DigitalInkRecognitionModel
Represents a downloadable recognition model.
Recognition models are downloaded on the device when the download
method is called. The
downloaded model is unzipped when DigitalInkRecognizer
loads it at inference time for the
first time, which makes the first recognition a bit slower than subsequent ones.
This object contains properties that are constant throughout the lifetime of a recognition model.
See DigitalInkRecognitionContext
for the properties that depend on the ink being recognized.
-
Identifier of this recognition model.
-
-
Creates a new instance from the specified model identifier.
Return Value
A new DigitalInkRecognitionModel
instance.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-07-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-07-10 UTC."],[[["Represents a downloadable recognition model that can be used for digital ink recognition."],["The model is downloaded when the `download` method is called and unzipped when the recognizer loads it for the first time."],["This object holds properties that remain constant throughout the model's lifetime, while ink-dependent properties are found in `DigitalInkRecognitionContext`."],["It is initialized using a `DigitalInkRecognitionModelIdentifier` and its properties can be accessed using its `modelIdentifier` property."]]],["The `DigitalInkRecognitionModel` class represents a downloadable model used for digital ink recognition. Models are downloaded via the `download` method and are unzipped upon first use by `DigitalInkRecognizer`. The class features a read-only `modelIdentifier` property. Instances are created using `init(modelIdentifier:)`, which accepts a `DigitalInkRecognitionModelIdentifier`. The model identifier specifies which recognition model to use. This model provides constant properties for the duration of use. The `init` method is not available.\n"]]