mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2025-06-07 09:52:40 +08:00
set class variable language_data_path_prefix
This commit is contained in:
parent
391972fbaf
commit
2a296fabd8
@ -83,6 +83,7 @@ bool Tesseract::init_tesseract_lang_data(const std::string &arg0,
|
||||
bool set_only_non_debug_params, TessdataManager *mgr) {
|
||||
// Set the language data path prefix
|
||||
lang = !language.empty() ? language : "eng";
|
||||
language_data_path_prefix = datadir.string();
|
||||
std::filesystem::path tessdata_path = datadir / (lang + "." + kTrainedDataSuffix);
|
||||
|
||||
// Initialize TessdataManager.
|
||||
|
Loading…
Reference in New Issue
Block a user