All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
tesseract::TuningParams Class Referenceabstract

#include <tuning_params.h>

Inheritance diagram for tesseract::TuningParams:
tesseract::CubeTuningParams

Public Types

enum  type_classifer { NN, HYBRID_NN }
 
enum  type_feature { BMP, CHEBYSHEV, HYBRID }
 

Public Member Functions

 TuningParams ()
 
virtual ~TuningParams ()
 
double RecoWgt () const
 
double SizeWgt () const
 
double CharBigramWgt () const
 
double WordUnigramWgt () const
 
int MaxSegPerChar () const
 
int BeamWidth () const
 
int TypeClassifier () const
 
int TypeFeature () const
 
int ConvGridSize () const
 
int HistWindWid () const
 
int MinConCompSize () const
 
double MaxWordAspectRatio () const
 
double MinSpaceHeightRatio () const
 
double MaxSpaceHeightRatio () const
 
double CombinerRunThresh () const
 
double CombinerClassifierThresh () const
 
void SetRecoWgt (double wgt)
 
void SetSizeWgt (double wgt)
 
void SetCharBigramWgt (double wgt)
 
void SetWordUnigramWgt (double wgt)
 
void SetMaxSegPerChar (int max_seg_per_char)
 
void SetBeamWidth (int beam_width)
 
void SetTypeClassifier (type_classifer tp_classifier)
 
void SetTypeFeature (type_feature tp_feat)
 
void SetHistWindWid (int hist_wind_wid)
 
virtual bool Save (string file_name)=0
 
virtual bool Load (string file_name)=0
 

Protected Attributes

double reco_wgt_
 
double size_wgt_
 
double char_bigrams_wgt_
 
double word_unigrams_wgt_
 
int max_seg_per_char_
 
int beam_width_
 
type_classifer tp_classifier_
 
type_feature tp_feat_
 
int conv_grid_size_
 
int hist_wind_wid_
 
int min_con_comp_size_
 
double max_word_aspect_ratio_
 
double min_space_height_ratio_
 
double max_space_height_ratio_
 
double combiner_run_thresh_
 
double combiner_classifier_thresh_
 

Detailed Description

Definition at line 33 of file tuning_params.h.

Member Enumeration Documentation

Enumerator
NN 
HYBRID_NN 

Definition at line 35 of file tuning_params.h.

Enumerator
BMP 
CHEBYSHEV 
HYBRID 

Definition at line 39 of file tuning_params.h.

Constructor & Destructor Documentation

tesseract::TuningParams::TuningParams ( )
inline

Definition at line 45 of file tuning_params.h.

45 {}
virtual tesseract::TuningParams::~TuningParams ( )
inlinevirtual

Definition at line 46 of file tuning_params.h.

46 {}

Member Function Documentation

int tesseract::TuningParams::BeamWidth ( ) const
inline

Definition at line 53 of file tuning_params.h.

53 { return beam_width_; }
double tesseract::TuningParams::CharBigramWgt ( ) const
inline

Definition at line 50 of file tuning_params.h.

50 { return char_bigrams_wgt_; }
double tesseract::TuningParams::CombinerClassifierThresh ( ) const
inline

Definition at line 63 of file tuning_params.h.

63  {
double tesseract::TuningParams::CombinerRunThresh ( ) const
inline

Definition at line 62 of file tuning_params.h.

62 { return combiner_run_thresh_; }
int tesseract::TuningParams::ConvGridSize ( ) const
inline

Definition at line 56 of file tuning_params.h.

56 { return conv_grid_size_; }
int tesseract::TuningParams::HistWindWid ( ) const
inline

Definition at line 57 of file tuning_params.h.

57 { return hist_wind_wid_; }
virtual bool tesseract::TuningParams::Load ( string  file_name)
pure virtual

Implemented in tesseract::CubeTuningParams.

int tesseract::TuningParams::MaxSegPerChar ( ) const
inline

Definition at line 52 of file tuning_params.h.

52 { return max_seg_per_char_; }
double tesseract::TuningParams::MaxSpaceHeightRatio ( ) const
inline

Definition at line 61 of file tuning_params.h.

61 { return max_space_height_ratio_; }
double tesseract::TuningParams::MaxWordAspectRatio ( ) const
inline

Definition at line 59 of file tuning_params.h.

59 { return max_word_aspect_ratio_; }
int tesseract::TuningParams::MinConCompSize ( ) const
inline

Definition at line 58 of file tuning_params.h.

double tesseract::TuningParams::MinSpaceHeightRatio ( ) const
inline

Definition at line 60 of file tuning_params.h.

60 { return min_space_height_ratio_; }
double tesseract::TuningParams::RecoWgt ( ) const
inline

Definition at line 48 of file tuning_params.h.

48 { return reco_wgt_; }
virtual bool tesseract::TuningParams::Save ( string  file_name)
pure virtual

Implemented in tesseract::CubeTuningParams.

void tesseract::TuningParams::SetBeamWidth ( int  beam_width)
inline

Definition at line 73 of file tuning_params.h.

73 { beam_width_ = beam_width; }
void tesseract::TuningParams::SetCharBigramWgt ( double  wgt)
inline

Definition at line 68 of file tuning_params.h.

68 { char_bigrams_wgt_ = wgt; }
void tesseract::TuningParams::SetHistWindWid ( int  hist_wind_wid)
inline

Definition at line 78 of file tuning_params.h.

78  {
79  hist_wind_wid_ = hist_wind_wid;
80  }
void tesseract::TuningParams::SetMaxSegPerChar ( int  max_seg_per_char)
inline

Definition at line 70 of file tuning_params.h.

70  {
71  max_seg_per_char_ = max_seg_per_char;
72  }
void tesseract::TuningParams::SetRecoWgt ( double  wgt)
inline

Definition at line 66 of file tuning_params.h.

66 { reco_wgt_ = wgt; }
void tesseract::TuningParams::SetSizeWgt ( double  wgt)
inline

Definition at line 67 of file tuning_params.h.

67 { size_wgt_ = wgt; }
void tesseract::TuningParams::SetTypeClassifier ( type_classifer  tp_classifier)
inline

Definition at line 74 of file tuning_params.h.

74  {
75  tp_classifier_ = tp_classifier;
76  }
type_classifer tp_classifier_
void tesseract::TuningParams::SetTypeFeature ( type_feature  tp_feat)
inline

Definition at line 77 of file tuning_params.h.

77 {tp_feat_ = tp_feat;}
void tesseract::TuningParams::SetWordUnigramWgt ( double  wgt)
inline

Definition at line 69 of file tuning_params.h.

69 { word_unigrams_wgt_ = wgt; }
double tesseract::TuningParams::SizeWgt ( ) const
inline

Definition at line 49 of file tuning_params.h.

49 { return size_wgt_; }
int tesseract::TuningParams::TypeClassifier ( ) const
inline

Definition at line 54 of file tuning_params.h.

54 { return tp_classifier_; }
type_classifer tp_classifier_
int tesseract::TuningParams::TypeFeature ( ) const
inline

Definition at line 55 of file tuning_params.h.

55 { return tp_feat_; }
double tesseract::TuningParams::WordUnigramWgt ( ) const
inline

Definition at line 51 of file tuning_params.h.

51 { return word_unigrams_wgt_; }

Member Data Documentation

int tesseract::TuningParams::beam_width_
protected

Definition at line 98 of file tuning_params.h.

double tesseract::TuningParams::char_bigrams_wgt_
protected

Definition at line 91 of file tuning_params.h.

double tesseract::TuningParams::combiner_classifier_thresh_
protected

Definition at line 125 of file tuning_params.h.

double tesseract::TuningParams::combiner_run_thresh_
protected

Definition at line 121 of file tuning_params.h.

int tesseract::TuningParams::conv_grid_size_
protected

Definition at line 104 of file tuning_params.h.

int tesseract::TuningParams::hist_wind_wid_
protected

Definition at line 107 of file tuning_params.h.

int tesseract::TuningParams::max_seg_per_char_
protected

Definition at line 95 of file tuning_params.h.

double tesseract::TuningParams::max_space_height_ratio_
protected

Definition at line 117 of file tuning_params.h.

double tesseract::TuningParams::max_word_aspect_ratio_
protected

Definition at line 111 of file tuning_params.h.

int tesseract::TuningParams::min_con_comp_size_
protected

Definition at line 109 of file tuning_params.h.

double tesseract::TuningParams::min_space_height_ratio_
protected

Definition at line 114 of file tuning_params.h.

double tesseract::TuningParams::reco_wgt_
protected

Definition at line 87 of file tuning_params.h.

double tesseract::TuningParams::size_wgt_
protected

Definition at line 89 of file tuning_params.h.

type_classifer tesseract::TuningParams::tp_classifier_
protected

Definition at line 100 of file tuning_params.h.

type_feature tesseract::TuningParams::tp_feat_
protected

Definition at line 102 of file tuning_params.h.

double tesseract::TuningParams::word_unigrams_wgt_
protected

Definition at line 93 of file tuning_params.h.


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