TextLine
Leave feedback
On this page
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
| Constructor | Description |
|---|---|
| TextLine(TextFragment[] fragments) | Initializes a new instance of a line of text, extracted by OCR engine from an image. |
| 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. |
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 |
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.
public String toString()
Returns textual content of the recognised line of text.
Returns: java.lang.String - textual content of the recognised line of text
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.