TextLineResultItem
The TextLineResultItem
class represents a single text line result item recognized by the library. It is derived from CapturedResultItem
and is one of the base items of RecognizedTextLinesResult
.
Definition
Namespace: com.dynamsoft.dlr
Assembly: DynamsoftLabelRecognizer.aar
class TextLineResultItem extends CapturedResultItem
Inheritance: CapturedResultItem -> TextLineResultItem
Methods
Method | Description |
---|---|
getText |
Returns the text content of the text line. |
getLocation |
Returns the location of the text line in the form of a quadrilateral. |
getConfidence |
Returns the confidence of the text line recognition result. |
getCharacterResults |
Get all the characters in the text line. Each character is represented by a CharacterResult object. |
getSpecificationName |
Returns the name of the TextLineSpecification object that generated this TextLineResultItem . |
getRawText |
Returns the recognized raw text, excluding any concatenation separators. |
getText
Returns the text content of the individual text line.
String getText();
Return value
Returns the text content of the text line.
getLocation
It is used to get the location of the text line in the form of a Quadrilateral.
Quadrilateral getLocation();
Return value
Returns the location of the text line in the form of a quadrilateral.
getConfidence
Returns the confidence of the individual text line recognition result.
int getConfidence();
Return value
Returns the confidence of the text line recognition result.
getCharacterResults
Returns all the characters in the text line. Each character is represented by a CharacterResult
object.
CharacterResult[] getCharacterResults();
Return value
An array of CharacterResult
contains all the characters.
getSpecificationName
Returns the name of the TextLineSpecification
object that generated this TextLineResultItem
.
String getSpecificationName();
Return value
The name of the TextLineSpecification
object that generated this TextLineResultItem
.
getRawText
Returns the recognized raw text, excluding any concatenation separators.
String getRawText();
Return value
The recognized raw text, excluding any concatenation separators.