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 intessedit_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
Fields Modifier and Type Field Description static int
OEM_DEFAULT
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 int
OEM_LSTM_ONLY
Run just the LSTM line recognizerstatic int
OEM_TESSERACT_LSTM_COMBINED
Run the LSTM recognizer, but allow fallback to Tesseract when things get difficultstatic int
OEM_TESSERACT_ONLY
Run Tesseract only - fastest
-
-
-
Field Detail
-
OEM_TESSERACT_ONLY
static final int OEM_TESSERACT_ONLY
Run Tesseract only - fastest- See Also:
- Constant Field Values
-
OEM_LSTM_ONLY
static final int OEM_LSTM_ONLY
Run just the LSTM line recognizer- See Also:
- Constant Field Values
-
OEM_TESSERACT_LSTM_COMBINED
static final int OEM_TESSERACT_LSTM_COMBINED
Run the LSTM recognizer, but allow fallback to Tesseract when things get difficult- See Also:
- Constant Field Values
-
OEM_DEFAULT
static final int OEM_DEFAULT
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
.- See Also:
- Constant Field Values
-
-