recognize_text_areas method

recognize_text_areas

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.

recognize_text_areas

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.

recognize_text_areas

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.

recognize_text_areas

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.

See Also