tesseract-doxygen/ccmain/output.h File Reference

#include "varable.h"
#include "pageres.h"
#include "notdll.h"

Go to the source code of this file.

Functions

 BOOL_EVAR_H (tessedit_write_block_separators, TRUE,"Write block separators in output")
 BOOL_EVAR_H (tessedit_write_output, TRUE,"Write text to name.txt")
 BOOL_EVAR_H (tessedit_write_txt_map, TRUE,"Write .txt to .etx map file")
 BOOL_EVAR_H (tessedit_write_rep_codes, TRUE,"Write repetition char code")
 BOOL_EVAR_H (tessedit_write_unlv, FALSE,"Write .unlv output file")
 STRING_EVAR_H (unrecognised_char,"|","Output char for unidentified blobs")
 INT_EVAR_H (suspect_level, 99,"Suspect marker level")
 BOOL_EVAR_H (tessedit_minimal_rejection, FALSE,"Only reject tess failures")
void write_results (PAGE_RES_IT &page_res_it, char newline_type, BOOL8 force_eol, BOOL8 write_to_shm)
WERD_CHOICEmake_epaper_choice (WERD_RES *word, char newline_type)
inT16 make_reject (TBOX *inset_box, inT16 prevright, inT16 nextleft, DENORM *denorm, char word_string[])
char determine_newline_type (WERD *word, BLOCK *block, WERD *next_word, BLOCK *next_block)
void write_cooked_text (WERD *word, const STRING &text, BOOL8 acceptable, BOOL8 pass2, FILE *fp)
void write_shm_text (WERD_RES *word, BLOCK *block, ROW_RES *row, const STRING &text, const STRING &text_lengths)
void write_map (FILE *mapfile, WERD_RES *word)
void write_unlv_text (WERD_RES *word)
void ensure_rep_chars_are_consistent (WERD_RES *word)

Variables

bool tessedit_write_raw_output = FALSE
int suspect_space_level = 100
int suspect_short_words = 2
bool suspect_constrain_1Il = FALSE
double suspect_rating_per_ch = 999.9
double suspect_accept_rating = -999.9
bool tessedit_zero_rejection = FALSE
bool tessedit_word_for_word = FALSE
bool tessedit_consistent_reps = TRUE

Function Documentation

BOOL_EVAR_H ( tessedit_minimal_rejection  ,
FALSE  ,
"Only reject tess failures"   
)
BOOL_EVAR_H ( tessedit_write_unlv  ,
FALSE  ,
"Write .unlv output file"   
)
BOOL_EVAR_H ( tessedit_write_rep_codes  ,
TRUE  ,
"Write repetition char code"   
)
BOOL_EVAR_H ( tessedit_write_txt_map  ,
TRUE  ,
"Write .txt to .etx map file"   
)
BOOL_EVAR_H ( tessedit_write_output  ,
TRUE  ,
"Write text to name.txt"   
)
BOOL_EVAR_H ( tessedit_write_block_separators  ,
TRUE  ,
"Write block separators in output"   
)
char determine_newline_type ( WERD word,
BLOCK block,
WERD next_word,
BLOCK next_block 
)

test line ends

Parameters:
word word to do
block current block
next_word next word
next_block block of next word
void ensure_rep_chars_are_consistent ( WERD_RES word  ) 
INT_EVAR_H ( suspect_level  ,
99  ,
"Suspect marker level"   
)
WERD_CHOICE* make_epaper_choice ( WERD_RES word,
char  newline_type 
)

convert one word

Parameters:
word word to do
newline_type type of newline
inT16 make_reject ( TBOX inset_box,
inT16  prevright,
inT16  nextleft,
DENORM denorm,
char  word_string[] 
)

make reject code

Parameters:
inset_box bounding box
prevright previous char
nextleft next char
denorm de-normalizer
word_string output string
STRING_EVAR_H ( unrecognised_char  ,
"|"  ,
"Output char for unidentified blobs  
)
void write_cooked_text ( WERD word,
const STRING text,
BOOL8  acceptable,
BOOL8  pass2,
FILE *  fp 
)

write output

Parameters:
word word to do
text text to write
acceptable good stuff
pass2 done on pass2
fp file to write
void write_map ( FILE *  mapfile,
WERD_RES word 
)

output a map file

Parameters:
mapfile mapfile to write to
void write_results ( PAGE_RES_IT page_res_it,
char  newline_type,
BOOL8  force_eol,
BOOL8  write_to_shm 
)

output a word

Parameters:
page_res_it full info
newline_type type of newline
force_eol override tilde crunch?
write_to_shm send to api
void write_shm_text ( WERD_RES word,
BLOCK block,
ROW_RES row,
const STRING text,
const STRING text_lengths 
)

write output

Parameters:
word word to do
block block it is from
row row it is from
text text to write
void write_unlv_text ( WERD_RES word  ) 

Variable Documentation

double suspect_accept_rating = -999.9

"Accept good rating limit"

"UNLV keep 1Il chars rejected"

double suspect_rating_per_ch = 999.9

"Dont touch bad rating limit"

"Dont Suspect dict wds longer than this"

"Min suspect level for rejecting spaces"

"Force all rep chars the same"

"Make output have exactly one word per WERD"

"Write raw stuff to name.raw"

"Dont reject ANYTHING"

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