#include "mfcpch.h"
#include "stderr.h"
#include "blobbox.h"
#include "ocrclass.h"
#include "lmedsq.h"
#include "statistc.h"
#include "drawtord.h"
#include "makerow.h"
#include "pitsync1.h"
#include "blobcmpl.h"
#include "tovars.h"
#include "topitch.h"
#include "tospace.h"
#include "fpchop.h"
#include "wordseg.h"
Defines | |
#define | EXTERN |
#define | FIXED_WIDTH_MULTIPLE 5 |
#define | BLOCK_STATS_CLUSTERS 10 |
Functions | |
void | make_single_word (bool one_blob, TO_ROW_LIST *rows, ROW_LIST *real_rows) |
void | make_words (ICOORD page_tr, float gradient, BLOCK_LIST *blocks, TO_BLOCK_LIST *land_blocks, TO_BLOCK_LIST *port_blocks, tesseract::Tesseract *tess) |
void | set_row_spaces (TO_BLOCK *block, FCOORD rotation, BOOL8 testing_on) |
inT32 | row_words (TO_BLOCK *block, TO_ROW *row, inT32 maxwidth, FCOORD rotation, BOOL8 testing_on) |
inT32 | row_words2 (TO_BLOCK *block, TO_ROW *row, inT32 maxwidth, FCOORD rotation, BOOL8 testing_on) |
void | make_real_words (TO_BLOCK *block, FCOORD rotation) |
ROW * | make_rep_words (TO_ROW *row, TO_BLOCK *block) |
WERD * | make_real_word (BLOBNBOX_IT *box_it, inT32 blobcount, BOOL8 bol, BOOL8 fuzzy_sp, BOOL8 fuzzy_non, uinT8 blanks) |
Variables | |
EXTERN bool | textord_fp_chopping = TRUE |
EXTERN bool | textord_force_make_prop_words = FALSE |
EXTERN bool | textord_chopper_test = FALSE |
ETEXT_DESC * | global_monitor |
#define BLOCK_STATS_CLUSTERS 10 |
#define EXTERN |
#define FIXED_WIDTH_MULTIPLE 5 |
WERD* make_real_word | ( | BLOBNBOX_IT * | box_it, | |
inT32 | blobcount, | |||
BOOL8 | bol, | |||
BOOL8 | fuzzy_sp, | |||
BOOL8 | fuzzy_non, | |||
uinT8 | blanks | |||
) |
void make_single_word | ( | bool | one_blob, | |
TO_ROW_LIST * | rows, | |||
ROW_LIST * | real_rows | |||
) |
void make_words | ( | ICOORD | page_tr, | |
float | gradient, | |||
BLOCK_LIST * | blocks, | |||
TO_BLOCK_LIST * | land_blocks, | |||
TO_BLOCK_LIST * | port_blocks, | |||
tesseract::Tesseract * | tess | |||
) |
inT32 row_words | ( | TO_BLOCK * | block, | |
TO_ROW * | row, | |||
inT32 | maxwidth, | |||
FCOORD | rotation, | |||
BOOL8 | testing_on | |||
) |
inT32 row_words2 | ( | TO_BLOCK * | block, | |
TO_ROW * | row, | |||
inT32 | maxwidth, | |||
FCOORD | rotation, | |||
BOOL8 | testing_on | |||
) |
EXTERN bool textord_chopper_test = FALSE |
"Chopper is being tested."
EXTERN bool textord_force_make_prop_words = FALSE |
"Force proportional word segmentation on all rows"
EXTERN bool textord_fp_chopping = TRUE |
"Do fixed pitch chopping"