00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef WORDSEG_H
00021 #define WORDSEG_H
00022
00023 #include "varable.h"
00024 #include "blobbox.h"
00025 #include "notdll.h"
00026
00027 namespace tesseract {
00028 class Tesseract;
00029 }
00030
00031 extern BOOL_VAR_H (textord_fp_chopping, TRUE, "Do fixed pitch chopping");
00032 extern BOOL_VAR_H(textord_force_make_prop_words, FALSE,
00033 "Force proportional word segmentation on all rows");
00034 extern BOOL_VAR_H (textord_chopper_test, FALSE,
00035 "Chopper is being tested.");
00036
00037 void make_single_word(bool one_blob, TO_ROW_LIST *rows, ROW_LIST* real_rows);
00038 void make_words(
00039 ICOORD page_tr,
00040 float gradient,
00041 BLOCK_LIST *blocks,
00042 TO_BLOCK_LIST *land_blocks,
00043 TO_BLOCK_LIST *port_blocks,
00044 tesseract::Tesseract*
00045 );
00046 void set_row_spaces(
00047 TO_BLOCK *block,
00048 FCOORD rotation,
00049 BOOL8 testing_on
00050 );
00051 inT32 row_words(
00052 TO_BLOCK *block,
00053 TO_ROW *row,
00054 inT32 maxwidth,
00055 FCOORD rotation,
00056 BOOL8 testing_on
00057 );
00058 inT32 row_words2(
00059 TO_BLOCK *block,
00060 TO_ROW *row,
00061 inT32 maxwidth,
00062 FCOORD rotation,
00063 BOOL8 testing_on
00064 );
00065 void make_real_words(
00066 TO_BLOCK *block,
00067 FCOORD rotation
00068 );
00069 ROW *make_rep_words(
00070 TO_ROW *row,
00071 TO_BLOCK *block
00072 );
00073 WERD *make_real_word(
00074 BLOBNBOX_IT *box_it,
00075 inT32 blobcount,
00076 BOOL8 bol,
00077 BOOL8 fuzzy_sp,
00078 BOOL8 fuzzy_non,
00079 uinT8 blanks
00080 );
00081 #endif
00082