tesseract  v4.0.0-17-g361f3264
Open Source OCR Engine
BlamerBundle Struct Reference

#include <blamer.h>

Collaboration diagram for BlamerBundle:

Public Member Functions

 BlamerBundle ()
 
 BlamerBundle (const BlamerBundle &other)
 
 ~BlamerBundle ()
 
STRING TruthString () const
 
IncorrectResultReason incorrect_result_reason () const
 
bool NoTruth () const
 
bool HasDebugInfo () const
 
const STRINGdebug () const
 
const STRINGmisadaption_debug () const
 
void UpdateBestRating (float rating)
 
int correct_segmentation_length () const
 
bool MatrixPositionCorrect (int index, const MATRIX_COORD &coord)
 
void set_best_choice_is_dict_and_top_choice (bool value)
 
const char * lattice_data () const
 
int lattice_size () const
 
void set_lattice_data (const char *data, int size)
 
const tesseract::ParamsTrainingBundleparams_training_bundle () const
 
void AddHypothesis (const tesseract::ParamsTrainingHypothesis &hypo)
 
void SetWordTruth (const UNICHARSET &unicharset, const char *truth_str, const TBOX &word_box)
 
void SetSymbolTruth (const UNICHARSET &unicharset, const char *char_str, const TBOX &char_box)
 
void SetRejectedTruth ()
 
bool ChoiceIsCorrect (const WERD_CHOICE *word_choice) const
 
void ClearResults ()
 
void CopyTruth (const BlamerBundle &other)
 
void CopyResults (const BlamerBundle &other)
 
const char * IncorrectReason () const
 
void FillDebugString (const STRING &msg, const WERD_CHOICE *choice, STRING *debug)
 
void SetupNormTruthWord (const DENORM &denorm)
 
void SplitBundle (int word1_right, int word2_left, bool debug, BlamerBundle *bundle1, BlamerBundle *bundle2) const
 
void JoinBlames (const BlamerBundle &bundle1, const BlamerBundle &bundle2, bool debug)
 
void BlameClassifier (const UNICHARSET &unicharset, const TBOX &blob_box, const BLOB_CHOICE_LIST &choices, bool debug)
 
void SetChopperBlame (const WERD_RES *word, bool debug)
 
void BlameClassifierOrLangModel (const WERD_RES *word, const UNICHARSET &unicharset, bool valid_permuter, bool debug)
 
void SetupCorrectSegmentation (const TWERD *word, bool debug)
 
bool GuidedSegsearchNeeded (const WERD_CHOICE *best_choice) const
 
void InitForSegSearch (const WERD_CHOICE *best_choice, MATRIX *ratings, UNICHAR_ID wildcard_id, bool debug, STRING *debug_str, TessResultCallback2< bool, int, int > *pp_cb)
 
bool GuidedSegsearchStillGoing () const
 
void FinishSegSearch (const WERD_CHOICE *best_choice, bool debug, STRING *debug_str)
 
void SetMisAdaptionDebug (const WERD_CHOICE *best_choice, bool debug)
 

Static Public Member Functions

static const char * IncorrectReasonName (IncorrectResultReason irr)
 
static void LastChanceBlame (bool debug, WERD_RES *word)
 

Private Member Functions

BlamerBundleoperator= (const BlamerBundle &other)
 
void SetBlame (IncorrectResultReason irr, const STRING &msg, const WERD_CHOICE *choice, bool debug)
 

Private Attributes

bool truth_has_char_boxes_
 
tesseract::BoxWord truth_word_
 
tesseract::BoxWord norm_truth_word_
 
int norm_box_tolerance_
 
GenericVector< STRINGtruth_text_
 
IncorrectResultReason incorrect_result_reason_
 
STRING debug_
 
STRING misadaption_debug_
 
bool segsearch_is_looking_for_blame_
 
float best_correctly_segmented_rating_
 
GenericVector< int > correct_segmentation_cols_
 
GenericVector< int > correct_segmentation_rows_
 
bool best_choice_is_dict_and_top_choice_
 
char * lattice_data_
 
int lattice_size_
 
tesseract::ParamsTrainingBundle params_training_bundle_
 

Constructor & Destructor Documentation

◆ BlamerBundle() [1/2]

BlamerBundle::BlamerBundle ( )
inline

◆ BlamerBundle() [2/2]

BlamerBundle::BlamerBundle ( const BlamerBundle other)
inline

◆ ~BlamerBundle()

BlamerBundle::~BlamerBundle ( )
inline

Member Function Documentation

◆ AddHypothesis()

void BlamerBundle::AddHypothesis ( const tesseract::ParamsTrainingHypothesis hypo)
inline

◆ BlameClassifier()

void BlamerBundle::BlameClassifier ( const UNICHARSET unicharset,
const TBOX blob_box,
const BLOB_CHOICE_LIST &  choices,
bool  debug 
)

◆ BlameClassifierOrLangModel()

void BlamerBundle::BlameClassifierOrLangModel ( const WERD_RES word,
const UNICHARSET unicharset,
bool  valid_permuter,
bool  debug 
)

◆ ChoiceIsCorrect()

bool BlamerBundle::ChoiceIsCorrect ( const WERD_CHOICE word_choice) const

◆ ClearResults()

void BlamerBundle::ClearResults ( )
inline

◆ CopyResults()

void BlamerBundle::CopyResults ( const BlamerBundle other)
inline

◆ CopyTruth()

void BlamerBundle::CopyTruth ( const BlamerBundle other)
inline

◆ correct_segmentation_length()

int BlamerBundle::correct_segmentation_length ( ) const
inline

◆ debug()

const STRING& BlamerBundle::debug ( ) const
inline

◆ FillDebugString()

void BlamerBundle::FillDebugString ( const STRING msg,
const WERD_CHOICE choice,
STRING debug 
)

◆ FinishSegSearch()

void BlamerBundle::FinishSegSearch ( const WERD_CHOICE best_choice,
bool  debug,
STRING debug_str 
)

◆ GuidedSegsearchNeeded()

bool BlamerBundle::GuidedSegsearchNeeded ( const WERD_CHOICE best_choice) const

◆ GuidedSegsearchStillGoing()

bool BlamerBundle::GuidedSegsearchStillGoing ( ) const

◆ HasDebugInfo()

bool BlamerBundle::HasDebugInfo ( ) const
inline

◆ incorrect_result_reason()

IncorrectResultReason BlamerBundle::incorrect_result_reason ( ) const
inline

◆ IncorrectReason()

const char * BlamerBundle::IncorrectReason ( ) const

◆ IncorrectReasonName()

const char * BlamerBundle::IncorrectReasonName ( IncorrectResultReason  irr)
static

◆ InitForSegSearch()

void BlamerBundle::InitForSegSearch ( const WERD_CHOICE best_choice,
MATRIX ratings,
UNICHAR_ID  wildcard_id,
bool  debug,
STRING debug_str,
TessResultCallback2< bool, int, int > *  pp_cb 
)

◆ JoinBlames()

void BlamerBundle::JoinBlames ( const BlamerBundle bundle1,
const BlamerBundle bundle2,
bool  debug 
)

◆ LastChanceBlame()

void BlamerBundle::LastChanceBlame ( bool  debug,
WERD_RES word 
)
static

◆ lattice_data()

const char* BlamerBundle::lattice_data ( ) const
inline

◆ lattice_size()

int BlamerBundle::lattice_size ( ) const
inline

◆ MatrixPositionCorrect()

bool BlamerBundle::MatrixPositionCorrect ( int  index,
const MATRIX_COORD coord 
)
inline

◆ misadaption_debug()

const STRING& BlamerBundle::misadaption_debug ( ) const
inline

◆ NoTruth()

bool BlamerBundle::NoTruth ( ) const
inline

◆ operator=()

BlamerBundle& BlamerBundle::operator= ( const BlamerBundle other)
private

◆ params_training_bundle()

const tesseract::ParamsTrainingBundle& BlamerBundle::params_training_bundle ( ) const
inline

◆ set_best_choice_is_dict_and_top_choice()

void BlamerBundle::set_best_choice_is_dict_and_top_choice ( bool  value)
inline

◆ set_lattice_data()

void BlamerBundle::set_lattice_data ( const char *  data,
int  size 
)
inline

◆ SetBlame()

void BlamerBundle::SetBlame ( IncorrectResultReason  irr,
const STRING msg,
const WERD_CHOICE choice,
bool  debug 
)
inlineprivate

◆ SetChopperBlame()

void BlamerBundle::SetChopperBlame ( const WERD_RES word,
bool  debug 
)

◆ SetMisAdaptionDebug()

void BlamerBundle::SetMisAdaptionDebug ( const WERD_CHOICE best_choice,
bool  debug 
)

◆ SetRejectedTruth()

void BlamerBundle::SetRejectedTruth ( )

◆ SetSymbolTruth()

void BlamerBundle::SetSymbolTruth ( const UNICHARSET unicharset,
const char *  char_str,
const TBOX char_box 
)

◆ SetupCorrectSegmentation()

void BlamerBundle::SetupCorrectSegmentation ( const TWERD word,
bool  debug 
)

◆ SetupNormTruthWord()

void BlamerBundle::SetupNormTruthWord ( const DENORM denorm)

◆ SetWordTruth()

void BlamerBundle::SetWordTruth ( const UNICHARSET unicharset,
const char *  truth_str,
const TBOX word_box 
)

◆ SplitBundle()

void BlamerBundle::SplitBundle ( int  word1_right,
int  word2_left,
bool  debug,
BlamerBundle bundle1,
BlamerBundle bundle2 
) const

◆ TruthString()

STRING BlamerBundle::TruthString ( ) const
inline

◆ UpdateBestRating()

void BlamerBundle::UpdateBestRating ( float  rating)
inline

Member Data Documentation

◆ best_choice_is_dict_and_top_choice_

bool BlamerBundle::best_choice_is_dict_and_top_choice_
private

◆ best_correctly_segmented_rating_

float BlamerBundle::best_correctly_segmented_rating_
private

◆ correct_segmentation_cols_

GenericVector<int> BlamerBundle::correct_segmentation_cols_
private

◆ correct_segmentation_rows_

GenericVector<int> BlamerBundle::correct_segmentation_rows_
private

◆ debug_

STRING BlamerBundle::debug_
private

◆ incorrect_result_reason_

IncorrectResultReason BlamerBundle::incorrect_result_reason_
private

◆ lattice_data_

char* BlamerBundle::lattice_data_
private

◆ lattice_size_

int BlamerBundle::lattice_size_
private

◆ misadaption_debug_

STRING BlamerBundle::misadaption_debug_
private

◆ norm_box_tolerance_

int BlamerBundle::norm_box_tolerance_
private

◆ norm_truth_word_

tesseract::BoxWord BlamerBundle::norm_truth_word_
private

◆ params_training_bundle_

tesseract::ParamsTrainingBundle BlamerBundle::params_training_bundle_
private

◆ segsearch_is_looking_for_blame_

bool BlamerBundle::segsearch_is_looking_for_blame_
private

◆ truth_has_char_boxes_

bool BlamerBundle::truth_has_char_boxes_
private

◆ truth_text_

GenericVector<STRING> BlamerBundle::truth_text_
private

◆ truth_word_

tesseract::BoxWord BlamerBundle::truth_word_
private

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