#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 |
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 | |||
) |
void clean_noise_from_words | ( | ROW * | row | ) |
void clean_small_noise_from_words | ( | ROW * | row | ) |
void cleanup_blocks | ( | BLOCK_LIST * | blocks | ) |
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 | |||
) |
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 | ) |
clock_t previous_cpu |
double textord_blob_size_bigile = 95 |
"Percentile for large blobs"
double textord_blob_size_smallile = 20 |
"Percentile for small blobs"
double textord_blshift_maxshift = 0.00 |
"Max baseline shift"
double textord_blshift_xfraction = 9.99 |
"Min size of baseline shift"
bool textord_exit_after = FALSE |
"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"
int textord_max_noise_size = 7 |
"Pixel size of noise"
"Use test xheight mechanism"
double textord_noise_area_ratio = 0.7 |
"Fraction of bounding box for noise"
bool textord_noise_debug = FALSE |
"Debug row garbage detector"
double textord_noise_normratio = 2.0 |
"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"
int textord_noise_sizefraction = 10 |
"Fraction of size for maxima"
double textord_noise_sizelimit = 0.5 |
"Fraction of x for big t count"
int textord_noise_sncount = 1 |
"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"
int textord_noise_translimit = 16 |
"Transitions for normal blob"
bool textord_show_blobs = FALSE |
"Display unsorted blobs"