This commit is contained in:
Egor Pugin 2021-03-14 17:14:41 +03:00
parent c2f3d565e8
commit dabdaa1def
2 changed files with 3 additions and 3 deletions

View File

@ -301,7 +301,7 @@ TESS_API int *TessBaseAPIAllWordConfidences(TessBaseAPI *handle);
#ifndef DISABLED_LEGACY_ENGINE
TESS_API BOOL TessBaseAPIAdaptToWordStr(TessBaseAPI *handle, TessPageSegMode mode,
const char *wordstr);
#endif // ndef DISABLED_LEGACY_ENGINE
#endif // #ifndef DISABLED_LEGACY_ENGINE
TESS_API void TessBaseAPIClear(TessBaseAPI *handle);
TESS_API void TessBaseAPIEnd(TessBaseAPI *handle);

View File

@ -2114,7 +2114,7 @@ bool TessBaseAPI::DetectOS(OSResults *osr) {
}
return orientation_and_script_detection(input_file_.c_str(), osr, tesseract_) > 0;
}
#endif // ndef DISABLED_LEGACY_ENGINE
#endif // #ifndef DISABLED_LEGACY_ENGINE
void TessBaseAPI::set_min_orientation_margin(double margin) {
tesseract_->min_orientation_margin.set_value(margin);
@ -2236,4 +2236,4 @@ std::string HOcrEscape(const char *text) {
return ret;
}
} // namespace tesseract.
} // namespace tesseract