tesseract  v4.0.0-17-g361f3264
Open Source OCR Engine
tesseract::AssociateUtils Class Reference

#include <associate.h>

Static Public Member Functions

static float ComputeOutlineLength (float rating_cert_scale, const BLOB_CHOICE &b)
 
static float ComputeRating (float rating_cert_scale, float cert, int width)
 
static void ComputeStats (int col, int row, const AssociateStats *parent_stats, int parent_path_length, bool fixed_pitch, float max_char_wh_ratio, WERD_RES *word_res, bool debug, AssociateStats *stats)
 
static float FixedPitchWidthCost (float norm_width, float right_gap, bool end_pos, float max_char_wh_ratio)
 
static float FixedPitchGapCost (float norm_gap, bool end_pos)
 

Static Public Attributes

static const float kMaxFixedPitchCharAspectRatio = 2.0f
 
static const float kMinGap = 0.03f
 

Member Function Documentation

◆ ComputeOutlineLength()

static float tesseract::AssociateUtils::ComputeOutlineLength ( float  rating_cert_scale,
const BLOB_CHOICE b 
)
inlinestatic

◆ ComputeRating()

static float tesseract::AssociateUtils::ComputeRating ( float  rating_cert_scale,
float  cert,
int  width 
)
inlinestatic

◆ ComputeStats()

void tesseract::AssociateUtils::ComputeStats ( int  col,
int  row,
const AssociateStats parent_stats,
int  parent_path_length,
bool  fixed_pitch,
float  max_char_wh_ratio,
WERD_RES word_res,
bool  debug,
AssociateStats stats 
)
static

◆ FixedPitchGapCost()

static float tesseract::AssociateUtils::FixedPitchGapCost ( float  norm_gap,
bool  end_pos 
)
inlinestatic

◆ FixedPitchWidthCost()

float tesseract::AssociateUtils::FixedPitchWidthCost ( float  norm_width,
float  right_gap,
bool  end_pos,
float  max_char_wh_ratio 
)
static

Member Data Documentation

◆ kMaxFixedPitchCharAspectRatio

const float tesseract::AssociateUtils::kMaxFixedPitchCharAspectRatio = 2.0f
static

◆ kMinGap

const float tesseract::AssociateUtils::kMinGap = 0.03f
static

The documentation for this class was generated from the following files: