diff options
author | Maxim Devaev <[email protected]> | 2022-02-21 04:18:15 +0300 |
---|---|---|
committer | Maxim Devaev <[email protected]> | 2022-02-21 04:18:15 +0300 |
commit | 96191a1b0809a62e5b14316190c3de46b05d9ec2 (patch) | |
tree | 6a1e6238ecb6fad8ce78f644af99c73533fbbe30 /kvmd/apps/__init__.py | |
parent | 67839a52a22a4e470109d3d0c8acf4798843bcf6 (diff) |
ocr
Diffstat (limited to 'kvmd/apps/__init__.py')
-rw-r--r-- | kvmd/apps/__init__.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/kvmd/apps/__init__.py b/kvmd/apps/__init__.py index d40e2feb..d3c8d5bc 100644 --- a/kvmd/apps/__init__.py +++ b/kvmd/apps/__init__.py @@ -454,7 +454,8 @@ def _get_config_scheme() -> Dict: }, "ocr": { - "langs": Option(["eng"], type=valid_string_list, unpack_as="default_langs"), + "langs": Option(["eng"], type=valid_string_list, unpack_as="default_langs"), + "tessdata": Option("/usr/share/tessdata", type=valid_stripped_string_not_empty, unpack_as="data_dir_path") }, "snapshot": { |