__init__ constructor

init

Initializes a new instance of the OcrOptions class with rectangular area.

def __init__(self):
    ...

init

Initializes a new OcrOptions instance with rectangular area.

def __init__(self, page_preview_options):
    ...
Parameter Type Description
page_preview_options PagePreviewOptions An instance of OcrOptions.page_preview_options that sets properties for the document page preview generation.

init

Initializes a new instance of the OcrOptions class with a rectangular area.

def __init__(self, rectangle):
    ...
Parameter Type Description
rectangle Rectangle The rectangular area that constraints the page area which is used for text recognizing.

init

Initializes a new OcrOptions instance with an OcrEventHandler to catch OCR events.

def __init__(self, handler):
    ...
Parameter Type Description
handler OcrEventHandler An instance of OcrEventHandler to catch OCR events.

init

Initializes a new instance of the OcrOptions class with a rectangular area and an OcrEventHandler object.

def __init__(self, rectangle, handler):
    ...
Parameter Type Description
rectangle Rectangle The rectangular area that constraints the page area which is used for text recognizing.
handler OcrEventHandler An instance of OcrEventHandler to catch OCR events.

init

Initializes a new OcrOptions instance.

def __init__(self, rectangle, handler, page_preview_options, use_spell_cheker):
    ...
Parameter Type Description
rectangle Rectangle The rectangular area that constraints the page area which is used for text recognizing.
handler OcrEventHandler An instance of OcrEventHandler to catch OCR events.
page_preview_options PagePreviewOptions An instance of OcrOptions.page_preview_options class that sets properties for the document page preview generation.
use_spell_cheker bool The value that indicates whether the spell checker is used.

init

Initializes a new instance of OcrOptions.

def __init__(self, rectangle, handler, page_preview_options, use_spell_cheker, language):
    ...
Parameter Type Description
rectangle Rectangle The rectangular area that constraints the page area which is used for text recognizing.
handler OcrEventHandler An instance of OcrEventHandler to catch OCR events.
page_preview_options PagePreviewOptions An instance of OcrOptions.page_preview_options class that sets properties for the document page preview generation.
use_spell_cheker bool The value that indicates whether the spell checker is used.
language Language The language used for OCR.

See Also