tesseract
4.0.0-1-g2a2b
|
#include "blobbox.h"
#include "statistc.h"
#include "drawtord.h"
#include "makerow.h"
#include "pitsync1.h"
#include "tovars.h"
#include "topitch.h"
#include "cjkpitch.h"
#include "textord.h"
#include "fpchop.h"
#include "wordseg.h"
Go to the source code of this file.
Macros | |
#define | EXTERN |
#define | FIXED_WIDTH_MULTIPLE 5 |
#define | BLOCK_STATS_CLUSTERS 10 |
Functions | |
make_single_word | |
For each row, arrange the blobs into one word. There is no fixed pitch detection. | |
void | make_single_word (bool one_blob, TO_ROW_LIST *rows, ROW_LIST *real_rows) |
void | make_words (tesseract::Textord *textord, ICOORD page_tr, float gradient, BLOCK_LIST *blocks, TO_BLOCK_LIST *port_blocks) |
set_row_spaces | |
Set the min_space and max_nonspace members of the row so that the blobs can be arranged into words. | |
void | set_row_spaces (TO_BLOCK *block, FCOORD rotation, bool testing_on) |
row_words | |
Compute the max nonspace and min space for the row. | |
int32_t | row_words (TO_BLOCK *block, TO_ROW *row, int32_t maxwidth, FCOORD rotation, bool testing_on) |
row_words2 | |
Compute the max nonspace and min space for the row. | |
int32_t | row_words2 (TO_BLOCK *block, TO_ROW *row, int32_t maxwidth, FCOORD rotation, bool testing_on) |
make_real_words | |
void | make_real_words (tesseract::Textord *textord, TO_BLOCK *block, FCOORD rotation) |
make_rep_words | |
Fabricate a real row from only the repeated blob words. Get the xheight from the block as it may be more meaningful. | |
ROW * | make_rep_words (TO_ROW *row, TO_BLOCK *block) |
make_real_word | |
Construct a WERD from a given number of adjacent entries in a list of BLOBNBOXs. | |
WERD * | make_real_word (BLOBNBOX_IT *box_it, int32_t blobcount, bool bol, uint8_t blanks) |
Variables | |
EXTERN bool | textord_fp_chopping = TRUE |
EXTERN bool | textord_force_make_prop_words = FALSE |
EXTERN bool | textord_chopper_test = FALSE |
#define BLOCK_STATS_CLUSTERS 10 |
Definition at line 46 of file wordseg.cpp.
#define EXTERN |
Definition at line 37 of file wordseg.cpp.
#define FIXED_WIDTH_MULTIPLE 5 |
Definition at line 45 of file wordseg.cpp.
WERD* make_real_word | ( | BLOBNBOX_IT * | box_it, |
int32_t | blobcount, | ||
bool | bol, | ||
uint8_t | blanks | ||
) |
Definition at line 583 of file wordseg.cpp.
void make_real_words | ( | tesseract::Textord * | textord, |
TO_BLOCK * | block, | ||
FCOORD | rotation | ||
) |
Definition at line 495 of file wordseg.cpp.
Definition at line 551 of file wordseg.cpp.
void make_single_word | ( | bool | one_blob, |
TO_ROW_LIST * | rows, | ||
ROW_LIST * | real_rows | ||
) |
Definition at line 56 of file wordseg.cpp.
void make_words | ( | tesseract::Textord * | textord, |
ICOORD | page_tr, | ||
float | gradient, | ||
BLOCK_LIST * | blocks, | ||
TO_BLOCK_LIST * | port_blocks | ||
) |
make_words
Arrange the blobs into words.
Definition at line 100 of file wordseg.cpp.
int32_t row_words | ( | TO_BLOCK * | block, |
TO_ROW * | row, | ||
int32_t | maxwidth, | ||
FCOORD | rotation, | ||
bool | testing_on | ||
) |
Definition at line 174 of file wordseg.cpp.
int32_t row_words2 | ( | TO_BLOCK * | block, |
TO_ROW * | row, | ||
int32_t | maxwidth, | ||
FCOORD | rotation, | ||
bool | testing_on | ||
) |
Definition at line 341 of file wordseg.cpp.
Definition at line 130 of file wordseg.cpp.
"Chopper is being tested."
Definition at line 43 of file wordseg.cpp.
"Force proportional word segmentation on all rows"
Definition at line 41 of file wordseg.cpp.
"Do fixed pitch chopping"
Definition at line 39 of file wordseg.cpp.