tesseract-doxygen/ccmain/fixspace.cpp File Reference

#include "mfcpch.h"
#include <ctype.h>
#include "reject.h"
#include "statistc.h"
#include "genblob.h"
#include "control.h"
#include "fixspace.h"
#include "tessvars.h"
#include "tessbox.h"
#include "secname.h"
#include "globals.h"
#include "tesseractclass.h"

Namespaces

namespace  tesseract

Defines

#define EXTERN
#define PERFECT_WERDS   999
#define MAXSPACING   128

Functions

void initialise_search (WERD_RES_LIST &src_list, WERD_RES_LIST &new_list)
void transform_to_next_perm (WERD_RES_LIST &words)
void dump_words (WERD_RES_LIST &perm, inT16 score, inT16 mode, BOOL8 improved)
BOOL8 uniformly_spaced (WERD_RES *word)
BOOL8 fixspace_thinks_word_done (WERD_RES *word)
void break_noisiest_blob_word (WERD_RES_LIST &words)
inT16 worst_noise_blob (WERD_RES *word_res, float *worst_noise_score)
float blob_noise_score (PBLOB *blob)
void fixspace_dbg (WERD_RES *word)

Variables

EXTERN bool fixsp_check_for_fp_noise_space = TRUE
EXTERN bool fixsp_fp_eval = TRUE
EXTERN bool fixsp_noise_score_fixing = TRUE
EXTERN int fixsp_non_noise_limit = 1
EXTERN double fixsp_small_outlines_size = 0.28
EXTERN bool fixsp_ignore_punct = TRUE
EXTERN bool fixsp_numeric_fix = TRUE
EXTERN bool fixsp_prefer_joined_1s = TRUE
EXTERN bool tessedit_test_uniform_wd_spacing = FALSE
EXTERN bool tessedit_prefer_joined_punct = FALSE
EXTERN int fixsp_done_mode = 1
EXTERN int debug_fix_space_level = 0
EXTERN char * numeric_punctuation = ".,"

Define Documentation

#define EXTERN
#define MAXSPACING   128
#define PERFECT_WERDS   999

Function Documentation

float blob_noise_score ( PBLOB blob  ) 
void break_noisiest_blob_word ( WERD_RES_LIST &  words  ) 
void dump_words ( WERD_RES_LIST &  perm,
inT16  score,
inT16  mode,
BOOL8  improved 
)
void fixspace_dbg ( WERD_RES word  ) 
BOOL8 fixspace_thinks_word_done ( WERD_RES word  ) 
void initialise_search ( WERD_RES_LIST &  src_list,
WERD_RES_LIST &  new_list 
)
void transform_to_next_perm ( WERD_RES_LIST &  words  ) 
BOOL8 uniformly_spaced ( WERD_RES word  ) 
inT16 worst_noise_blob ( WERD_RES word_res,
float *  worst_noise_score 
)

Variable Documentation

EXTERN int debug_fix_space_level = 0

"Contextual fixspace debug"

"Try turning noise to space in fixed pitch"

EXTERN int fixsp_done_mode = 1

"What constitues done for spacing"

"Use alternate evaluation for fp"

"In uniform spacing calc"

"More sophisticated?"

EXTERN int fixsp_non_noise_limit = 1

"How many non-noise blbs either side?"

"Try to deal with numeric punct"

"Arbitrary boost"

EXTERN double fixsp_small_outlines_size = 0.28

"Small if lt xht x this"

EXTERN char* numeric_punctuation = ".,"

"Punct. chs expected WITHIN numbers"

"Reward punctation joins"

"Limit context word spacing"

Generated on Sun Jul 18 17:10:49 2010 for Tesseract by  doxygen 1.6.3