tesseract
5.0.0-alpha-619-ge9db
|
Go to the documentation of this file.
20 #ifndef TESSERACT_CCMAIN_OSDETECT_H_
21 #define TESSERACT_CCMAIN_OSDETECT_H_
27 class BLOB_CHOICE_LIST;
52 for (
int i = 0; i < 4; ++i) {
105 static const char* korean_script_;
106 static const char* japanese_script_;
107 static const char* fraktur_script_;
127 BLOBNBOX_CLIST* blob_list,
OSResults* osr,
138 #endif // TESSERACT_CCMAIN_OSDETECT_H_
int os_detect(TO_BLOCK_LIST *port_blocks, OSResults *osr, tesseract::Tesseract *tess)
int os_detect_blobs(const GenericVector< int > *allowed_scripts, BLOBNBOX_CLIST *blob_list, OSResults *osr, tesseract::Tesseract *tess)
bool os_detect_blob(BLOBNBOX *bbox, OrientationDetector *o, ScriptDetector *s, OSResults *, tesseract::Tesseract *tess)
TESS_API int OrientationIdToValue(const int &id)
void update_best_orientation()
const int kMaxNumberOfScripts
TESS_API int get_best_script(int orientation_id) const
void print_scores(void) const
float scripts_na[4][kMaxNumberOfScripts]
void set_best_orientation(int orientation_id)
void detect_blob(BLOB_CHOICE_LIST *scores)
OrientationDetector(const GenericVector< int > *allowed_scripts, OSResults *results)
int orientation_and_script_detection(STRING &filename, OSResults *, tesseract::Tesseract *)
void update_best_script(int orientation_id)
ScriptDetector(const GenericVector< int > *allowed_scripts, OSResults *osr, tesseract::Tesseract *tess)
void accumulate(const OSResults &osr)
bool detect_blob(BLOB_CHOICE_LIST *scores)
bool must_stop(int orientation)