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 "params.h"
00024 #include "blobbox.h"
00025 #include "notdll.h"
00026 #include "textord.h"
00027
00028 namespace tesseract {
00029 class Tesseract;
00030 }
00031
00032 extern BOOL_VAR_H (textord_fp_chopping, TRUE, "Do fixed pitch chopping");
00033 extern BOOL_VAR_H(textord_force_make_prop_words, FALSE,
00034 "Force proportional word segmentation on all rows");
00035 extern BOOL_VAR_H (textord_chopper_test, FALSE,
00036 "Chopper is being tested.");
00037
00038 void make_single_word(bool one_blob, TO_ROW_LIST *rows, ROW_LIST* real_rows);
00039 void make_words(tesseract::Textord *textord,
00040 ICOORD page_tr,
00041 float gradient,
00042 BLOCK_LIST *blocks,
00043 TO_BLOCK_LIST *port_blocks);
00044 void set_row_spaces(
00045 TO_BLOCK *block,
00046 FCOORD rotation,
00047 BOOL8 testing_on
00048 );
00049 inT32 row_words(
00050 TO_BLOCK *block,
00051 TO_ROW *row,
00052 inT32 maxwidth,
00053 FCOORD rotation,
00054 BOOL8 testing_on
00055 );
00056 inT32 row_words2(
00057 TO_BLOCK *block,
00058 TO_ROW *row,
00059 inT32 maxwidth,
00060 FCOORD rotation,
00061 BOOL8 testing_on
00062 );
00063 void make_real_words(
00064 tesseract::Textord *textord,
00065 TO_BLOCK *block,
00066 FCOORD rotation
00067 );
00068 ROW *make_rep_words(
00069 TO_ROW *row,
00070 TO_BLOCK *block
00071 );
00072 WERD *make_real_word(
00073 BLOBNBOX_IT *box_it,
00074 inT32 blobcount,
00075 BOOL8 bol,
00076 uinT8 blanks
00077 );
00078 #endif