提交 97cfd958 编写于 作者: S Stefan Weil

Replace STRING by char* in LSTMRecognizer

Signed-off-by: NStefan Weil <sw@weilnetz.de>
上级 6d165528
......@@ -175,7 +175,7 @@ bool Tesseract::init_tesseract_lang_data(
tessedit_ocr_engine_mode == OEM_TESSERACT_LSTM_COMBINED) {
#endif // ndef DISABLED_LEGACY_ENGINE
if (mgr->IsComponentAvailable(TESSDATA_LSTM)) {
lstm_recognizer_ = new LSTMRecognizer(language_data_path_prefix);
lstm_recognizer_ = new LSTMRecognizer(language_data_path_prefix.c_str());
ASSERT_HOST(lstm_recognizer_->Load(
this->params(), lstm_use_matrix ? language : nullptr, mgr));
} else {
......
......@@ -47,7 +47,7 @@ const double kDictRatio = 2.25;
// Default certainty offset to give the dictionary a chance.
const double kCertOffset = -0.085;
LSTMRecognizer::LSTMRecognizer(const STRING language_data_path_prefix)
LSTMRecognizer::LSTMRecognizer(const char* language_data_path_prefix)
: LSTMRecognizer::LSTMRecognizer() {
ccutil_.language_data_path_prefix = language_data_path_prefix;
}
......
......@@ -53,7 +53,7 @@ enum TrainingFlags {
class TESS_API LSTMRecognizer {
public:
LSTMRecognizer();
LSTMRecognizer(const STRING language_data_path_prefix);
LSTMRecognizer(const char* language_data_path_prefix);
~LSTMRecognizer();
int NumOutputs() const { return network_->NumOutputs(); }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册