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