Skip to content

Latest commit

 

History

History
32 lines (19 loc) · 955 Bytes

Common-Errors-and-Resolutions.md

File metadata and controls

32 lines (19 loc) · 955 Bytes

Errors during LSTM Training

See Ray Smith's notes in TrainingTesseract 4.00, specifically the section on errors.

Errors related to Tesseract API

Error if locale settings are not equal to "C"

Normal C++ programs like those which are built for tesseract automatically set the locale "C".

There can be different locale settings if the tesseract library is used in other software.

A wrong locale can cause wrong results from sscanf() which is used at different places in the tesseract code, so make sure that we have the right locale settings and fail if that is not the case.

!strcmp(locale, "C"):Error:Assert failed:in file baseapi.cpp, line 192

You have to find out whether the "C" locale works with your code or you must restore the original locale after calling the Tesseract API.

Errors related to Tesseract CLI

TBD