AI-generated Key Takeaways
-
RecognitionResult represents the output of an ink recognition, which typically includes several alternative interpretations called candidates.
-
Candidates are represented as a list of RecognitionCandidate objects and can be retrieved using the getCandidates() method.
-
Candidates are ordered from most likely to least likely, and the list will be empty if nothing can be recognized.
-
DigitalInkRecognizer is used to perform the recognition itself.
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.
Protected Constructor Summary
Public Method Summary
| boolean | |
| List<RecognitionCandidate> |
getCandidates()
Returns the list of recognition alternatives.
|
| int |
hashCode()
|
| String |
toString()
|
Inherited Method Summary
Protected Constructors
protected RecognitionResult ()
Public Methods
public boolean equals (Object other)
public List<RecognitionCandidate> getCandidates ()
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.