mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2025-01-21 00:20:45 +08:00
Show tessdata directory when listing models
Signed-off-by: Stefan Weil <sw@weilnetz.de>
This commit is contained in:
parent
c2ee0cd06f
commit
03f2cfdf02
@ -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());
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user