__init__ constructor
Leave feedback
On this page
Initializes a recognized text fragment.
def __init__(self, text, rectangle):
...
| Parameter | Type | Description |
|---|---|---|
| text | str |
textual content of the recognized text fragment. |
| rectangle | Rectangle |
bounding rectangle of the recognized text fragment. |
from groupdocs.redaction.integration.ocr import TextFragment
from groupdocs.redaction.options.drawing import Rectangle
fragment = TextFragment("Emily Johnson", Rectangle(40, 40, 230, 40))
- class
TextFragment
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.