pysseract.OcrEngineMode

class pysseract.OcrEngineMode

Enumeration of Engine Mode

Members:

TESSERACT_ONLY : Run Tesseract only - fastest; deprecated

LSTM_ONLY : Run just the LSTM line recognizer

TESSERACT_LSTM_COMBINED : Run the LSTM recognizer, but allow fallback to Tesseract when things get difficult. deprecated

DEFAULT

Specify this mode when calling init_*(), to indicate that any of the above modes should be automatically inferred from the variables in the language-specific config, command-line configs, or if not specified in any of the above should be set to the default OEM_TESSERACT_ONLY.

COUNT : Number of OEMs

__init__(self: _pysseract.OcrEngineMode, arg0: int) → None

Methods