add document language option in config dialog

Document language setting is used for better text extraction and OCR.
This commit is contained in:
chrox
2013-07-20 02:46:51 +08:00
parent 167e6ca0aa
commit 1808c7e5c3
7 changed files with 51 additions and 9 deletions

View File

@@ -41,6 +41,10 @@ DKOPTREADER_CONFIG_JUSTIFICATION = -1 -- -1 = auto, 0 = left, 1 = center, 2 = ri
DKOPTREADER_CONFIG_MAX_COLUMNS = 2 -- range from 1 to 4
DKOPTREADER_CONFIG_CONTRAST = 1.0 -- range from 0.2 to 2.0
-- document languages for OCR
DKOPTREADER_CONFIG_DOC_LANGS_TEXT = {"English", "Chinese_S", "Chinese_T"}
DKOPTREADER_CONFIG_DOC_LANGS_CODE = {"eng", "chi_sim", "chi_tra"}
DKOPTREADER_CONFIG_DOC_DEFAULT_LANG_CODE = "eng"
-- ####################################################################
-- following features are not supported right now