Package net.sourceforge.tess4j
Interface ITessAPI.TessOcrEngineMode
- Enclosing interface:
- ITessAPI
public static interface ITessAPI.TessOcrEngineMode
When Tesseract/Cube is initialized we can choose to instantiate/load/run
only the Tesseract part, only the Cube part or both along with the
combiner. The preference of which engine to use is stored in
ATTENTION: When modifying this enum, please make sure to make the appropriate changes to all the enums mirroring it (e.g. OCREngine in cityblock/workflow/detection/detection_storage.proto). Such enums will mention the connection to OcrEngineMode in the comments.
tessedit_ocr_engine_mode
.ATTENTION: When modifying this enum, please make sure to make the appropriate changes to all the enums mirroring it (e.g. OCREngine in cityblock/workflow/detection/detection_storage.proto). Such enums will mention the connection to OcrEngineMode in the comments.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Specify this mode when callinginit_*()
, 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 defaultOEM_TESSERACT_ONLY
.static final int
Run just the LSTM line recognizerstatic final int
Run the LSTM recognizer, but allow fallback to Tesseract when things get difficultstatic final int
Run Tesseract only - fastest
-
Field Details
-
OEM_TESSERACT_ONLY
static final int OEM_TESSERACT_ONLYRun Tesseract only - fastest- See Also:
-
OEM_LSTM_ONLY
static final int OEM_LSTM_ONLYRun just the LSTM line recognizer- See Also:
-
OEM_TESSERACT_LSTM_COMBINED
static final int OEM_TESSERACT_LSTM_COMBINEDRun the LSTM recognizer, but allow fallback to Tesseract when things get difficult- See Also:
-
OEM_DEFAULT
static final int OEM_DEFAULTSpecify this mode when callinginit_*()
, 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 defaultOEM_TESSERACT_ONLY
.- See Also:
-