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.
| Constructor | Description |
|---|---|
| RecognizedImage(List |
Initializes a new instance of the class, using a set of recognized lines. |
| Field | Description |
|---|---|
| EMPTY | Empty recognized image |
| Method | Description |
|---|---|
| getLines() | Gets lines of text, with their fragments, recognized within the document. |
| getText() | Gets textual equivalent of the structured text |
public RecognizedImage(List<TextLine> lines)
Initializes a new instance of the class, using a set of recognized lines.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| lines | java.util.List<com.groupdocs.conversion.integration.ocr.TextLine> | an IEnumerable (e.g. a list or an array) of recognized lines |
public static final RecognizedImage EMPTY
Empty recognized image
public TextLine[] getLines()
Gets lines of text, with their fragments, recognized within the document.
Returns: com.groupdocs.conversion.integration.ocr.TextLine[]
public String getText()
Gets textual equivalent of the structured text
Returns: java.lang.String
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.