Show tessdata directory when listing models

Signed-off-by: Stefan Weil <sw@weilnetz.de>
This commit is contained in:
Stefan Weil 2021-11-13 21:43:01 +01:00
parent c2ee0cd06f
commit 03f2cfdf02

View File

@ -329,7 +329,8 @@ static bool SetVariablesFromCLArgs(tesseract::TessBaseAPI &api, int argc, char *
static void PrintLangsList(tesseract::TessBaseAPI &api) { static void PrintLangsList(tesseract::TessBaseAPI &api) {
std::vector<std::string> languages; std::vector<std::string> languages;
api.GetAvailableLanguagesAsVector(&languages); api.GetAvailableLanguagesAsVector(&languages);
printf("List of available languages (%zu):\n", languages.size()); printf("List of available languages in \"%s\" (%zu):\n",
api.GetDatapath(), languages.size());
for (const auto &language : languages) { for (const auto &language : languages) {
printf("%s\n", language.c_str()); printf("%s\n", language.c_str());
} }