21 #ifdef DISABLED_LEGACY_ENGINE 31 "Print blamer debug messages", params()),
34 "Try to set the blame for errors", params()) {
40 #else // DISABLED_LEGACY_ENGINE not defined 50 "Merge the fragments in the ratings matrix and delete them" 51 " after merging", params()),
57 "force associator to run regardless of what enable_assoc is." 58 " This is used for CJK where component grouping is necessary.",
60 double_MEMBER(wordrec_worst_state, 1.0,
"Worst segmentation state",
63 "Use information from fragments to guide chopping process",
65 INT_MEMBER(repair_unchopped_blobs, 1,
"Fix blobs that aren't chopped",
67 double_MEMBER(tessedit_certainty_threshold, -2.25,
"Good blob limit",
73 BOOL_MEMBER(chop_vertical_creep, 0,
"Vertical creep",
75 INT_MEMBER(chop_split_length, 10000,
"Split Length",
77 INT_MEMBER(chop_same_distance, 2,
"Same distance",
79 INT_MEMBER(chop_min_outline_points, 6,
"Min Number of Points on Outline",
81 INT_MEMBER(chop_seam_pile_size, 150,
"Max number of seams in seam_pile",
83 BOOL_MEMBER(chop_new_seam_pile, 1,
"Use new seam_pile", params()),
84 INT_MEMBER(chop_inside_angle, -50,
"Min Inside Angle Bend",
86 INT_MEMBER(chop_min_outline_area, 2000,
"Min Outline Area",
88 double_MEMBER(chop_split_dist_knob, 0.5,
"Split length adjustment",
90 double_MEMBER(chop_overlap_knob, 0.9,
"Split overlap adjustment",
92 double_MEMBER(chop_center_knob, 0.15,
"Split center adjustment",
94 INT_MEMBER(chop_centered_maxwidth, 90,
"Width of (smaller) chopped blobs " 95 "above which we don't care that a chop is not near the center.",
97 double_MEMBER(chop_sharpness_knob, 0.06,
"Split sharpness adjustment",
99 double_MEMBER(chop_width_change_knob, 5.0,
"Width change adjustment",
105 INT_MEMBER(chop_x_y_weight, 3,
"X / Y length weight",
107 INT_MEMBER(segment_adjust_debug, 0,
"Segmentation adjustment debug",
110 "include fixed-pitch heuristics in char segmentation",
113 "Debug level for wordrec", params()),
115 "Max number of broken pieces to associate", params()),
117 "Only run OCR for words that had truth recorded in BlamerBundle",
120 "Print blamer debug messages", params()),
122 "Try to set the blame for errors", params()),
124 "SegSearch debug level", params()),
126 "Maximum number of pain points stored in the queue",
128 INT_MEMBER(segsearch_max_futile_classifications, 20,
129 "Maximum number of pain point classifications per chunk that" 130 " did not result in finding a better word choice.",
133 "Maximum character width-to-height ratio", params()),
135 "Save alternative paths found during chopping" 136 " and segmentation search",
138 pass2_ok_split(0.0f) {
147 #endif // DISABLED_LEGACY_ENGINE
WERD_CHOICE * prev_word_best_choice_
UnicityTable< FontInfo > & get_fontinfo_table()
#define INT_MEMBER(name, val, comment, vec)
#define BOOL_MEMBER(name, val, comment, vec)
void(Wordrec::* fill_lattice_)(const MATRIX &ratings, const WERD_CHOICE_LIST &best_choices, const UNICHARSET &unicharset, BlamerBundle *blamer_bundle)
#define double_MEMBER(name, val, comment, vec)
std::unique_ptr< LanguageModel > language_model_