__init__ constructor

On this page

init

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

def __init__(self, lines):
    ...
Parameter Type Description
lines Iterable[TextLine] an Iterable (e.g. a list or an array) of recognized lines.

Example

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

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

See Also

On this page