From c74ff1259b0fc296eba293f6209d3b08e741239f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20P=C3=B6sel?= Date: Mon, 19 Apr 2021 16:55:01 +0200 Subject: [PATCH] Fix wrong parameter name and documentation set_only_init_params -> set_only_non_debug_params --- src/ccmain/tessedit.cpp | 4 ++-- src/ccmain/tesseractclass.h | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/ccmain/tessedit.cpp b/src/ccmain/tessedit.cpp index 44a173953..b75666110 100644 --- a/src/ccmain/tessedit.cpp +++ b/src/ccmain/tessedit.cpp @@ -376,8 +376,8 @@ int Tesseract::init_tesseract(const std::string &arg0, const std::string &textba // vars_vec is an optional vector of variables to set. // vars_values is an optional corresponding vector of values for the variables // in vars_vec. -// If set_only_init_params is true, then only the initialization variables -// will be set. +// If set_only_non_debug_params is true, only params that do not contain +// "debug" in the name will be set. int Tesseract::init_tesseract_internal(const std::string &arg0, const std::string &textbase, const std::string &language, OcrEngineMode oem, char **configs, int configs_size, diff --git a/src/ccmain/tesseractclass.h b/src/ccmain/tesseractclass.h index b2a41c4f5..528443d96 100644 --- a/src/ccmain/tesseractclass.h +++ b/src/ccmain/tesseractclass.h @@ -491,7 +491,7 @@ public: int init_tesseract(const std::string &arg0, const std::string &textbase, const std::string &language, OcrEngineMode oem, char **configs, int configs_size, const std::vector *vars_vec, - const std::vector *vars_values, bool set_only_init_params, + const std::vector *vars_values, bool set_only_non_debug_params, TessdataManager *mgr); int init_tesseract(const std::string &datapath, const std::string &language, OcrEngineMode oem) { TessdataManager mgr; @@ -511,13 +511,13 @@ public: // vars_vec is an optional vector of variables to set. // vars_values is an optional corresponding vector of values for the variables // in vars_vec. - // If set_only_init_params is true, then only the initialization variables - // will be set. + // If set_only_non_debug_params is true, only params that do not contain + // "debug" in the name will be set. int init_tesseract_internal(const std::string &arg0, const std::string &textbase, const std::string &language, OcrEngineMode oem, char **configs, int configs_size, const std::vector *vars_vec, const std::vector *vars_values, - bool set_only_init_params, TessdataManager *mgr); + bool set_only_non_debug_params, TessdataManager *mgr); // Set the universal_id member of each font to be unique among all // instances of the same font loaded. @@ -533,7 +533,7 @@ public: const std::string &language, OcrEngineMode oem, char **configs, int configs_size, const std::vector *vars_vec, const std::vector *vars_values, - bool set_only_init_params, TessdataManager *mgr); + bool set_only_non_debug_params, TessdataManager *mgr); void ParseLanguageString(const std::string &lang_str, std::vector *to_load, std::vector *not_to_load);