RecognizedImage
Contents
[
Hide
]
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
Constructors
Constructor | Description |
---|---|
RecognizedImage(TextLine[] lines) | Initializes a new instance of the class, using a set of recognized lines. |
Methods
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. |
RecognizedImage(TextLine[] lines)
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 |
getText()
public final String getText()
Gets textual equivalent of the structured text.
Returns: java.lang.String - Textual equivalent of the structured text.
getLines()
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.
toString()
public String toString()
Gets textual equivalent of the structured text.
Returns: java.lang.String - Recognized text