20 #ifndef TESSERACT_CCMAIN_OSDETECT_H_ 21 #define TESSERACT_CCMAIN_OSDETECT_H_ 27 class BLOB_CHOICE_LIST;
51 for (
int i = 0; i < 4; ++i) {
103 static const char* korean_script_;
104 static const char* japanese_script_;
105 static const char* fraktur_script_;
122 int os_detect(TO_BLOCK_LIST* port_blocks,
127 BLOBNBOX_CLIST* blob_list,
140 #endif // TESSERACT_CCMAIN_OSDETECT_H_ OrientationDetector(const GenericVector< int > *allowed_scripts, OSResults *results)
bool must_stop(int orientation)
bool os_detect_blob(BLOBNBOX *bbox, OrientationDetector *o, ScriptDetector *s, OSResults *, tesseract::Tesseract *tess)
void update_best_orientation()
void set_best_orientation(int orientation_id)
float scripts_na[4][kMaxNumberOfScripts]
void print_scores(void) const
int os_detect_blobs(const GenericVector< int > *allowed_scripts, BLOBNBOX_CLIST *blob_list, OSResults *osr, tesseract::Tesseract *tess)
ScriptDetector(const GenericVector< int > *allowed_scripts, OSResults *osr, tesseract::Tesseract *tess)
void update_best_script(int orientation_id)
const int kMaxNumberOfScripts
void detect_blob(BLOB_CHOICE_LIST *scores)
void accumulate(const OSResults &osr)
int orientation_and_script_detection(STRING &filename, OSResults *, tesseract::Tesseract *)
int os_detect(TO_BLOCK_LIST *port_blocks, OSResults *osr, tesseract::Tesseract *tess)
bool detect_blob(BLOB_CHOICE_LIST *scores)
TESS_API int get_best_script(int orientation_id) const
TESS_API int OrientationIdToValue(const int &id)