18#ifndef TESSERACT_CCMAIN_OSDETECT_H_
19#define TESSERACT_CCMAIN_OSDETECT_H_
29class BLOB_CHOICE_LIST;
49 for (
int i = 0;
i < 4; ++
i) {
92 const std::vector<int> *allowed_scripts_;
104 static const char *korean_script_;
105 static const char *japanese_script_;
106 static const char *fraktur_script_;
116 const std::vector<int> *allowed_scripts_;
126 BLOBNBOX_CLIST *blob_list,
OSResults *osr,
TESS_API int OrientationIdToValue(const int &id)
int os_detect_blobs(const std::vector< int > *allowed_scripts, BLOBNBOX_CLIST *blob_list, OSResults *osr, tesseract::Tesseract *tess)
const int kMaxNumberOfScripts
bool os_detect_blob(BLOBNBOX *bbox, OrientationDetector *o, ScriptDetector *s, OSResults *, tesseract::Tesseract *tess)
int orientation_and_script_detection(const char *filename, OSResults *, tesseract::Tesseract *)
int os_detect(TO_BLOCK_LIST *port_blocks, OSResults *osr, tesseract::Tesseract *tess)
TESS_API int get_best_script(int orientation_id) const
float scripts_na[4][kMaxNumberOfScripts]
void accumulate(const OSResults &osr)
void print_scores(void) const
void update_best_orientation()
void set_best_orientation(int orientation_id)
void update_best_script(int orientation_id)
bool detect_blob(BLOB_CHOICE_LIST *scores)
OrientationDetector(const std::vector< int > *allowed_scripts, OSResults *results)
void detect_blob(BLOB_CHOICE_LIST *scores)
bool must_stop(int orientation) const
ScriptDetector(const std::vector< int > *allowed_scripts, OSResults *osr, tesseract::Tesseract *tess)