RecognitionResult
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 RecognitionCandidate
.
Use DigitalInkRecognizer
to perform the recognition itself.
Inherited Method Summary
From class java.lang.Object
Object
|
clone()
|
boolean |
|
void |
finalize()
|
final Class<?>
|
getClass()
|
int |
hashCode()
|
final void |
notify()
|
final void |
notifyAll()
|
String
|
toString()
|
final void |
wait(long arg0, int arg1)
|
final void |
wait(long arg0)
|
final void |
wait()
|
Public Methods
Returns the 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. If nothing can be recognized, this
list will be empty.
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-10-31 UTC.
[null,null,["Last updated 2024-10-31 UTC."],[[["`RecognitionResult` represents the output of an ink recognition process, including multiple possible interpretations (candidates) of the user's input."],["It provides a list of `RecognitionCandidate` objects, each representing a potential interpretation, ranked by likelihood."],["Use `DigitalInkRecognizer` to perform the recognition and obtain a `RecognitionResult` instance."],["The number of candidates returned depends on the model and options used during recognition setup."],["If no recognizable input is provided, the list of candidates will be empty."]]],["`RecognitionResult` represents the output of ink recognition, providing a list of `RecognitionCandidate` objects, also known as candidates. These candidates are alternatives representing possible user intent, ordered from most to least likely. `getCandidates()` is a method that returns this list of alternatives. The number of candidates provided by `getCandidates()` is determined by options used during recognizer initialization. `DigitalInkRecognizer` is the tool used to perform the recognition.\n"]]