RecognizedImage

Inheritance: java.lang.Object

public class RecognizedImage

Represents text, extracted from an image as a result of its recognition process.

Constructors

Constructor Description
RecognizedImage(List lines) Initializes a new instance of the class, using a set of recognized lines.

Fields

Field Description
EMPTY Empty recognized image

Methods

Method Description
getLines() Gets lines of text, with their fragments, recognized within the document.
getText() Gets textual equivalent of the structured text

RecognizedImage(List lines)

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

EMPTY

public static final RecognizedImage EMPTY

Empty recognized image

getLines()

public TextLine[] getLines()

Gets lines of text, with their fragments, recognized within the document.

Returns: com.groupdocs.conversion.integration.ocr.TextLine[]

getText()

public String getText()

Gets textual equivalent of the structured text

Returns: java.lang.String