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) {
102 static const char* korean_script_;
103 static const char* japanese_script_;
104 static const char* fraktur_script_;
121 int os_detect(TO_BLOCK_LIST* port_blocks,
126 BLOBNBOX_CLIST* blob_list,
139 #endif // TESSERACT_CCMAIN_OSDETECT_H__
TESS_API const int OrientationIdToValue(const int &id)
bool os_detect_blob(BLOBNBOX *bbox, OrientationDetector *o, ScriptDetector *s, OSResults *, tesseract::Tesseract *tess)
void update_best_orientation()
void detect_blob(BLOB_CHOICE_LIST *scores)
float scripts_na[4][kMaxNumberOfScripts]
int os_detect(TO_BLOCK_LIST *port_blocks, OSResults *osr, tesseract::Tesseract *tess)
const int kMaxNumberOfScripts
void set_best_orientation(int orientation_id)
void accumulate(const OSResults &osr)
int os_detect_blobs(const GenericVector< int > *allowed_scripts, BLOBNBOX_CLIST *blob_list, OSResults *osr, tesseract::Tesseract *tess)
bool must_stop(int orientation)
ScriptDetector(const GenericVector< int > *allowed_scripts, OSResults *osr, tesseract::Tesseract *tess)
void update_best_script(int orientation_id)
OrientationDetector(const GenericVector< int > *allowed_scripts, OSResults *results)
int orientation_and_script_detection(STRING &filename, OSResults *, tesseract::Tesseract *)
TESS_API int get_best_script(int orientation_id) const
bool detect_blob(BLOB_CHOICE_LIST *scores)
void print_scores(void) const