#include <math.h>
#include "heuristic.h"
#include "baseline.h"
#include "freelist.h"
#include "metrics.h"
#include "measure.h"
#include "ratngs.h"
#include "wordrec.h"
Namespaces | |
namespace | tesseract |
Defines | |
#define | MAX_SQUAT 2.0 |
#define | BAD_RATING 1000.0 |
Functions | |
WIDTH_RECORD * | tesseract::state_char_widths (WIDTH_RECORD *chunk_widths, STATE *state, int num_joints) |
FLOAT32 | tesseract::get_width_variance (WIDTH_RECORD *wrec, float norm_height) |
FLOAT32 | tesseract::get_gap_variance (WIDTH_RECORD *wrec, float norm_height) |
FLOAT32 | tesseract::fp_width_cost (float norm_width, bool end_pos) |
FLOAT32 | tesseract::fp_gap_cost (float norm_gap, bool end_pos) |
Variables | |
int | segment_adjust_debug = 0 |
bool | assume_fixed_pitch_char_segment = 0 |
bool | use_new_state_cost = 0 |
double | heuristic_segcost_rating_base = 1.25 |
double | heuristic_weight_rating = 1 |
double | heuristic_weight_width = 0 |
double | heuristic_weight_seamcut = 0 |
double | heuristic_max_char_wh_ratio = 2.0 |
#define BAD_RATING 1000.0 |
#define MAX_SQUAT 2.0 |
"include fixed-pitch heuristics in char segmentation"
double heuristic_max_char_wh_ratio = 2.0 |
"max char width-to-height ratio allowed in segmentation"
double heuristic_segcost_rating_base = 1.25 |
"base factor for adding segmentation cost into word rating." "It's a multiplying factor, the larger the value above 1, " "the bigger the effect of segmentation cost."
double heuristic_weight_rating = 1 |
"weight associated with char rating in combined cost of state"
double heuristic_weight_seamcut = 0 |
"weight associated with seam cut in combined cost of state"
double heuristic_weight_width = 0 |
"weight associated with width evidence in combined cost of state"
int segment_adjust_debug = 0 |
"Segmentation adjustment debug"
"use new state cost heuristics for segmentation state evaluation"