23 #ifndef TESSERACT_CCMAIN_TESSERACT_CUBE_COMBINER_H 24 #define TESSERACT_CCMAIN_TESSERACT_CUBE_COMBINER_H 34 class CubeRecoContext;
69 std::vector<double> *features,
81 std::string NormalizeString(
const std::string &str,
bool remove_punc,
bool norm_case);
85 int CompareStrings(
const std::string &str1,
const std::string &str2,
bool ignore_punc,
93 #endif // TESSERACT_CCMAIN_TESSERACT_CUBE_COMBINER_H TesseractCubeCombiner(CubeRecoContext *cube_cntxt)
virtual ~TesseractCubeCombiner()
float CombineResults(WERD_RES *tess_res, CubeObject *cube_obj)
bool ValidWord(const std::string &str)
bool ComputeCombinerFeatures(const std::string &tess_res, int tess_confidence, CubeObject *cube_obj, WordAltList *cube_alt_list, std::vector< double > *features, bool *agreement)