20 #ifndef TESSERACT_CCMAIN_OSDETECT_H__
21 #define TESSERACT_CCMAIN_OSDETECT_H__
28 class BLOB_CHOICE_LIST;
49 for (
int i = 0; i < 4; ++i) {
99 static const char* korean_script_;
100 static const char* japanese_script_;
101 static const char* fraktur_script_;
117 int os_detect(TO_BLOCK_LIST* port_blocks,
134 #endif // TESSERACT_CCMAIN_OSDETECT_H__
void update_best_orientation()
void accumulate(const OSResults &osr)
ScriptDetector(OSResults *, tesseract::Tesseract *tess)
void detect_blob(BLOB_CHOICE_LIST *scores)
int os_detect(TO_BLOCK_LIST *port_blocks, OSResults *osr, tesseract::Tesseract *tess)
int os_detect_blobs(BLOBNBOX_CLIST *blob_list, OSResults *osr, tesseract::Tesseract *tess)
float scripts_na[4][kMaxNumberOfScripts]
int orientation_and_script_detection(STRING &filename, OSResults *, tesseract::Tesseract *)
bool detect_blob(BLOB_CHOICE_LIST *scores)
void print_scores(void) const
bool must_stop(int orientation)
int get_best_script(int orientation_id) const
bool os_detect_blob(BLOBNBOX *bbox, OrientationDetector *o, ScriptDetector *s, OSResults *, tesseract::Tesseract *tess)
void set_best_orientation(int orientation_id)
OrientationDetector(OSResults *)
const int OrientationIdToValue(const int &id)
void update_best_script(int orientation_id)
const int kMaxNumberOfScripts