mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2024-12-03 00:49:01 +08:00
Misc.
This commit is contained in:
parent
c2f3d565e8
commit
dabdaa1def
@ -301,7 +301,7 @@ TESS_API int *TessBaseAPIAllWordConfidences(TessBaseAPI *handle);
|
|||||||
#ifndef DISABLED_LEGACY_ENGINE
|
#ifndef DISABLED_LEGACY_ENGINE
|
||||||
TESS_API BOOL TessBaseAPIAdaptToWordStr(TessBaseAPI *handle, TessPageSegMode mode,
|
TESS_API BOOL TessBaseAPIAdaptToWordStr(TessBaseAPI *handle, TessPageSegMode mode,
|
||||||
const char *wordstr);
|
const char *wordstr);
|
||||||
#endif // ndef DISABLED_LEGACY_ENGINE
|
#endif // #ifndef DISABLED_LEGACY_ENGINE
|
||||||
|
|
||||||
TESS_API void TessBaseAPIClear(TessBaseAPI *handle);
|
TESS_API void TessBaseAPIClear(TessBaseAPI *handle);
|
||||||
TESS_API void TessBaseAPIEnd(TessBaseAPI *handle);
|
TESS_API void TessBaseAPIEnd(TessBaseAPI *handle);
|
||||||
|
@ -2114,7 +2114,7 @@ bool TessBaseAPI::DetectOS(OSResults *osr) {
|
|||||||
}
|
}
|
||||||
return orientation_and_script_detection(input_file_.c_str(), osr, tesseract_) > 0;
|
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) {
|
void TessBaseAPI::set_min_orientation_margin(double margin) {
|
||||||
tesseract_->min_orientation_margin.set_value(margin);
|
tesseract_->min_orientation_margin.set_value(margin);
|
||||||
@ -2236,4 +2236,4 @@ std::string HOcrEscape(const char *text) {
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace tesseract.
|
} // namespace tesseract
|
||||||
|
Loading…
Reference in New Issue
Block a user