__init__ constructor

On this page

init

Initializes a new instance of a line of text, extracted by OCR engine from an image.

def __init__(self, fragments):
    ...
Parameter Type Description
fragments Iterable[TextFragment] initial set of text fragments.

Example

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

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

See Also

On this page