RecognizedImage class

RecognizedImage class

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

Learn more

The RecognizedImage type exposes the following members:

Constructors

Constructor Description
init Initializes a new instance of the class using a set of recognized lines.

Methods

Method Description
to_string Returns the textual equivalent of the structured text.

Properties

Property Description
lines The lines of text, with their fragments, recognized within the document.
text The textual equivalent of the structured text.

Example

from groupdocs.redaction.integration.ocr import RecognizedImage, TextLine, TextFragment
from groupdocs.redaction.options.drawing import Rectangle

recognized = RecognizedImage([
    TextLine([TextFragment("Emily Johnson", Rectangle(40, 40, 230, 40))])
])

Guides

Task guides that use RecognizedImage:

See Also