TextLine
Contents
[
Hide
]
Inheritance: java.lang.Object
public class TextLine
Represents a line of text, extracted by OCR engine from an image.
Learn more
- More details about using OCR in GroupDocs.Redaction: OCR Usage Basics
Constructors
Constructor | Description |
---|---|
TextLine(TextFragment[] fragments) | Initializes a new instance of a line of text, extracted by OCR engine from an image. |
Methods
Method | Description |
---|---|
getFragments() | Gets an array of text fragments, such as symbols and words, recognized in the line. |
toString() | Returns textual content of the recognised line of text. |
TextLine(TextFragment[] fragments)
public TextLine(TextFragment[] fragments)
Initializes a new instance of a line of text, extracted by OCR engine from an image.
Parameters:
Parameter | Type | Description |
---|---|---|
fragments | TextFragment[] | initial set of text fragments |
getFragments()
public final TextFragment[] getFragments()
Gets an array of text fragments, such as symbols and words, recognized in the line.
Returns: com.groupdocs.redaction.integration.TextFragment[] - An array of text fragments, such as symbols and words, recognized in the line.
toString()
public String toString()
Returns textual content of the recognised line of text.
Returns: java.lang.String - textual content of the recognised line of text