RecognizedImage
Leave feedback
On this page
Inheritance: java.lang.Object
public class RecognizedImage
Represents text, extracted from an image as a result of its recognition process.
Learn more
- More details about using OCR in GroupDocs.Redaction: OCR Usage Basics
| Constructor | Description |
|---|---|
| RecognizedImage(TextLine[] lines) | Initializes a new instance of the class, using a set of recognized lines. |
| Method | Description |
|---|---|
| getText() | Gets textual equivalent of the structured text. |
| getLines() | Gets lines of text, with their fragments, recognized within the document. |
| toString() | Gets textual equivalent of the structured text. |
public RecognizedImage(TextLine[] lines)
Initializes a new instance of the class, using a set of recognized lines.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| lines | TextLine[] | an IEnumerable (e.g. a list or an array) of recognized lines |
public final String getText()
Gets textual equivalent of the structured text.
Returns: java.lang.String - Textual equivalent of the structured text.
public final TextLine[] getLines()
Gets lines of text, with their fragments, recognized within the document.
Returns: com.groupdocs.redaction.integration.TextLine[] - Lines of text, with their fragments, recognized within the document.
public String toString()
Gets textual equivalent of the structured text.
Returns: java.lang.String - Recognized 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.