recognize_text method
Leave feedback
On this page
Recognizes text from an image stream.
def recognize_text(self, image_stream, page_index, options):
...
| Parameter | Type | Description |
|---|---|---|
| image_stream | io.RawIOBase |
The image representation of the document page. |
| page_index | int |
The page index of the document. |
| options | OcrOptions |
The OCR options. |
Returns: str | None: The recognized text, or None if text recognition isn’t supported.
Recognize text from an image stream.
def recognize_text(self, image_stream, options):
...
| Parameter | Type | Description |
|---|---|---|
| image_stream | io.RawIOBase |
The image representation of the document page. |
| options | OcrOptions |
The OCR options. |
Returns: str or None: The recognized text, or None if text recognition 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.