tesseract-doxygen/textord/tordmain.h File Reference

#include <time.h>
#include "varable.h"
#include "ocrblock.h"
#include "tessclas.h"
#include "blobbox.h"
#include "notdll.h"

Go to the source code of this file.

Namespaces

namespace  tesseract

Functions

 STRING_EVAR_H (tessedit_image_ext,".tif","Externsion for image file")
void make_blocks_from_blobs (TBLOB *tessblobs, const char *filename, ICOORD page_tr, BOOL8 do_shift, BLOCK_LIST *blocks)
void find_components (BLOCK_LIST *blocks, TO_BLOCK_LIST *land_blocks, TO_BLOCK_LIST *port_blocks, TBOX *page_box)
void SetBlobStrokeWidth (bool debug, BLOBNBOX *blob)
void assign_blobs_to_blocks2 (BLOCK_LIST *blocks, TO_BLOCK_LIST *land_blocks, TO_BLOCK_LIST *port_blocks)
void filter_blobs (ICOORD page_tr, TO_BLOCK_LIST *blocks, BOOL8 testing_on)
float filter_noise_blobs (BLOBNBOX_LIST *src_list, BLOBNBOX_LIST *noise_list, BLOBNBOX_LIST *small_list, BLOBNBOX_LIST *large_list)
float filter_noise_blobs2 (BLOBNBOX_LIST *src_list, BLOBNBOX_LIST *noise_list, BLOBNBOX_LIST *small_list, BLOBNBOX_LIST *large_list)
void textord_page (ICOORD page_tr, BLOCK_LIST *blocks, TO_BLOCK_LIST *land_blocks, TO_BLOCK_LIST *port_blocks, tesseract::Tesseract *)
void cleanup_blocks (BLOCK_LIST *blocks)
BOOL8 clean_noise_from_row (ROW *row)
void clean_noise_from_words (ROW *row)
void clean_small_noise_from_words (ROW *row)
void tweak_row_baseline (ROW *row)
inT32 blob_y_order (void *item1, void *item2)

Variables

bool textord_show_blobs = FALSE
bool textord_new_initial_xheight = TRUE
bool textord_exit_after = FALSE
int textord_max_noise_size = 7
double textord_blob_size_bigile = 95
double textord_noise_area_ratio = 0.7
double textord_blob_size_smallile = 20
double textord_initialx_ile = 0.75
double textord_initialasc_ile = 0.90
int textord_noise_sizefraction = 10
double textord_noise_sizelimit = 0.5
int textord_noise_translimit = 16
double textord_noise_normratio = 2.0
bool textord_noise_rejwords = TRUE
bool textord_noise_rejrows = TRUE
double textord_noise_syfract = 0.2
double textord_noise_sxfract = 0.4
int textord_noise_sncount = 1
double textord_noise_rowratio = 6.0
bool textord_noise_debug = FALSE
double textord_blshift_maxshift = 0.00
double textord_blshift_xfraction = 9.99
clock_t previous_cpu

Function Documentation

void assign_blobs_to_blocks2 ( BLOCK_LIST *  blocks,
TO_BLOCK_LIST *  land_blocks,
TO_BLOCK_LIST *  port_blocks 
)
inT32 blob_y_order ( void *  item1,
void *  item2 
)
BOOL8 clean_noise_from_row ( ROW row  ) 
void clean_noise_from_words ( ROW row  ) 
void clean_small_noise_from_words ( ROW row  ) 
void cleanup_blocks ( BLOCK_LIST *  blocks  ) 
void filter_blobs ( ICOORD  page_tr,
TO_BLOCK_LIST *  blocks,
BOOL8  testing_on 
)
float filter_noise_blobs ( BLOBNBOX_LIST *  src_list,
BLOBNBOX_LIST *  noise_list,
BLOBNBOX_LIST *  small_list,
BLOBNBOX_LIST *  large_list 
)
float filter_noise_blobs2 ( BLOBNBOX_LIST *  src_list,
BLOBNBOX_LIST *  noise_list,
BLOBNBOX_LIST *  small_list,
BLOBNBOX_LIST *  large_list 
)
void find_components ( BLOCK_LIST *  blocks,
TO_BLOCK_LIST *  land_blocks,
TO_BLOCK_LIST *  port_blocks,
TBOX page_box 
)
void make_blocks_from_blobs ( TBLOB tessblobs,
const char *  filename,
ICOORD  page_tr,
BOOL8  do_shift,
BLOCK_LIST *  blocks 
)
void SetBlobStrokeWidth ( bool  debug,
BLOBNBOX blob 
)
STRING_EVAR_H ( tessedit_image_ext  ,
".tif"  ,
"Externsion for image file"   
)
void textord_page ( ICOORD  page_tr,
BLOCK_LIST *  blocks,
TO_BLOCK_LIST *  land_blocks,
TO_BLOCK_LIST *  port_blocks,
tesseract::Tesseract  
)
void tweak_row_baseline ( ROW row  ) 

Variable Documentation

clock_t previous_cpu

"Percentile for large blobs"

"Percentile for small blobs"

double textord_blshift_maxshift = 0.00

"Max baseline shift"

"Min size of baseline shift"

"Exit after completing textord"

double textord_initialasc_ile = 0.90

"Ile of sizes for xheight guess"

double textord_initialx_ile = 0.75

"Ile of sizes for xheight guess"

"Pixel size of noise"

"Use test xheight mechanism"

"Fraction of bounding box for noise"

"Debug row garbage detector"

"Dot to norm ratio for deletion"

"Reject noise-like rows"

"Reject noise-like words"

double textord_noise_rowratio = 6.0

"Dot to norm ratio for deletion"

"Fraction of size for maxima"

"Fraction of x for big t count"

"super norm blobs to save row"

double textord_noise_sxfract = 0.4

"xh fract width error for norm blobs"

double textord_noise_syfract = 0.2

"xh fract error for norm blobs"

"Transitions for normal blob"

"Display unsorted blobs"

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