tesseract
5.0.0-alpha-619-ge9db
|
Go to the documentation of this file.
22 #ifndef TESSERACT_WORDREC_PAIN_POINTS_H_
23 #define TESSERACT_WORDREC_PAIN_POINTS_H_
34 struct ViterbiStateEntry;
49 static const char *
const LMPainPointsTypeName[] = {
66 return LMPainPointsTypeName[
type];
70 max_heap_size_(max), max_char_wh_ratio_(rat), fixed_pitch_(fp),
71 dict_(d), debug_level_(deb) {}
76 return !pain_points_heaps_[pp_type].
empty();
86 for (
auto & pain_points_heap : pain_points_heaps_) pain_points_heap.clear();
107 float special_priority,
bool ok_to_extend,
108 float max_char_wh_ratio,
123 float max_char_wh_ratio_;
134 #endif // TESSERACT_WORDREC_PAIN_POINTS_H_
void RemapForSplit(int index)
LMPainPoints(int max, float rat, bool fp, const Dict *d, int deb)
static const float kLooseMaxCharWhRatio
void GenerateFromPath(float rating_cert_scale, ViterbiStateEntry *vse, WERD_RES *word_res)
static const char * PainPointDescription(LMPainPointsType type)
void GenerateFromAmbigs(const DANGERR &fixpt, ViterbiStateEntry *vse, WERD_RES *word_res)
LMPainPointsType Deque(MATRIX_COORD *pp, float *priority)
bool HasPainPoints(LMPainPointsType pp_type) const
void GenerateInitial(WERD_RES *word_res)
bool GeneratePainPoint(int col, int row, LMPainPointsType pp_type, float special_priority, bool ok_to_extend, float max_char_wh_ratio, WERD_RES *word_res)
static const float kDefaultPainPointPriorityAdjustment