public class TextLine extends Object
Represents a line of text, extracted by OCR engine from an image.
Learn more
Constructor and Description |
---|
TextLine(TextFragment[] fragments)
Initializes a new instance of a line of text, extracted by OCR engine from an image.
|
Modifier and Type | Method and Description |
---|---|
TextFragment[] |
getFragments()
Gets an array of text fragments, such as symbols and words, recognized in the line.
|
String |
toString()
Returns textual content of the recognised line of text.
|
public TextLine(TextFragment[] fragments)
Initializes a new instance of a line of text, extracted by OCR engine from an image.
fragments
- initial set of text fragmentspublic final TextFragment[] getFragments()
Gets an array of text fragments, such as symbols and words, recognized in the line.