MLKitDigitalInkRecognition Framework Reference
Stay organized with collections
Save and categorize content based on your preferences.
DigitalInkRecognitionResult
class DigitalInkRecognitionResult : NSObject
Object representing the output of an ink recognition.
A recognizer usually provides several recognition alternatives, because the user intent is not
always clear. For example, if the user writes a vertical line and then a circle, the recognition
alternatives could include “10”, “IO”, and “lo”.
Alternatives are named “candidates”. This object represents a set of candidates as a list of
DigitalInkRecognitionCandidate
.
Use DigitalInkRecognizer
to perform the recognition itself. If nothing could be recognized,
the property candidates
will be an empty array.
-
List of recognition alternatives.
Candidates are ordered from most likely to least likely. When scores are provided, they
are in increasing order.
The number of candidates depends on the options used when initializing the recognizer. See
DigitalInkRecognitionModel
and DigitalInkRecognizerOptions
for details.
Declaration
Swift
var candidates: [MLKDigitalInkRecognitionCandidate] { get }
-
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."],[[["`DigitalInkRecognitionResult` stores the output of an ink recognition process, offering multiple interpretations of the user's input."],["Recognition results are presented as a ranked list of `DigitalInkRecognitionCandidate` objects, with the most likely interpretation appearing first."],["The number of candidates provided depends on the configuration of the `DigitalInkRecognitionModel` and `DigitalInkRecognizerOptions` used during recognition."],["If the recognizer cannot interpret the ink input, the `candidates` list will be empty."],["`DigitalInkRecognitionResult` objects are generated by the `DigitalInkRecognizer` and should not be manually instantiated."]]],[]]