recognize_text_areas method
Leave feedback
On this page
Recognize text areas from image_stream stream.
def recognize_text_areas(self, image_stream, page_index, page_size, options):
...
| Parameter | Type | Description |
|---|---|---|
| image_stream | io.RawIOBase |
The image representation of the document page. |
| page_index | int |
The page index of the document. |
| page_size | Size |
The size of the document page. |
| options | OcrOptions |
The OCR options. |
Returns: Iterable[PageTextArea]: A collection of PageTextArea objects; None if text areas recognizing isn’t supported.
Recognizes text areas from the provided image stream.
def recognize_text_areas(self, image_stream, page_size, options):
...
| Parameter | Type | Description |
|---|---|---|
| image_stream | io.RawIOBase |
The image representation of the document page. |
| page_size | Size |
The size of the document page. |
| options | OcrOptions |
The OCR options. |
Returns: A collection of PageTextArea objects; None if text areas recognizing isn’t supported.
Recognizes text areas from image_stream stream.
def recognize_text_areas(self, image_stream, page, options):
...
| Parameter | Type | Description |
|---|---|---|
| image_stream | io.RawIOBase |
The image representation of the document page. |
| page | Page |
The document page. |
| options | OcrOptions |
The OCR options. |
Returns: A collection of PageTextArea objects; None if text areas recognizing isn’t supported.
Recognizes text areas from the given image stream.
def recognize_text_areas(self, image_stream, rectangles, allowed_symbols, page, options):
...
| Parameter | Type | Description |
|---|---|---|
| image_stream | io.RawIOBase |
The image representation of the document page. |
| rectangles | Iterable[Rectangle] |
The collection of rectangular areas that limits the OCR functionality. |
| allowed_symbols | str |
The filter of allowed symbols by OCR. |
| page | Page |
The document page. |
| options | OcrOptions |
The OCR options. |
Returns: A collection of PageTextArea objects; None if text areas recognizing isn’t supported.
- class
OcrConnectorBase
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.