Skip to content

Commit

Permalink
Don't set a default language in TessBaseAPI::Init (API change)
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Weil <[email protected]>
  • Loading branch information
stweil committed Oct 26, 2021
1 parent 48c5d42 commit f5d22d0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/api/baseapi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -376,9 +376,8 @@ int TessBaseAPI::Init(const char *data, int data_size, const char *language, Ocr
char **configs, int configs_size, const std::vector<std::string> *vars_vec,
const std::vector<std::string> *vars_values, bool set_only_non_debug_params,
FileReader reader) {
// Default language is "eng".
if (language == nullptr) {
language = "eng";
language = "";
}
if (data == nullptr) {
data = "";
Expand Down

0 comments on commit f5d22d0

Please sign in to comment.