tesseract-doxygen/ccmain/applybox.h File Reference
#include "varable.h"
#include "ocrblock.h"
#include "ocrrow.h"
#include "notdll.h"
#include "unichar.h"
Go to the source code of this file.
Functions |
UNICHAR_ID | register_char (const char *uch) |
void | apply_boxes (const STRING &filename, BLOCK_LIST *block_list) |
void | clear_any_old_text (BLOCK_LIST *block_list) |
BOOL8 | read_next_box (int page, FILE *box_file, TBOX *box, UNICHAR_ID *uch_id) |
ROW * | find_row_of_box (BLOCK_LIST *block_list, const TBOX &box, inT16 &block_id, inT16 &row_id_to_process) |
inT16 | resegment_box (ROW *row, TBOX &box, UNICHAR_ID uch_id, inT16 block_id, inT16 row_id, inT16 boxfile_lineno, inT16 boxfile_charno, inT16 *tgt_char_counts, bool learn_char_fragments, bool learning) |
void | tidy_up (BLOCK_LIST *block_list, inT16 &ok_char_count, inT16 &ok_row_count, inT16 &unlabelled_words, inT16 *tgt_char_counts, inT16 &rebalance_count, UNICHAR_ID *min_uch_id, inT16 &min_samples, inT16 &final_labelled_blob_count, bool learn_character_fragments, bool learning) |
void | report_failed_box (inT16 boxfile_lineno, inT16 boxfile_charno, TBOX box, const char *box_ch, const char *err_msg) |
void | apply_box_training (const STRING &filename, BLOCK_LIST *block_list) |
Variables |
bool | applybox_rebalance = TRUE |
int | applybox_debug = 0 |
int | applybox_page = 0 |
char * | applybox_test_exclusions = "|" |
double | applybox_error_band = 0.15 |
char * | exposure_pattern = "exp" |
Function Documentation
void apply_box_training |
( |
const STRING & |
filename, |
|
|
BLOCK_LIST * |
block_list | |
|
) |
| | |
void apply_boxes |
( |
const STRING & |
filename, |
|
|
BLOCK_LIST * |
block_list | |
|
) |
| | |
void clear_any_old_text |
( |
BLOCK_LIST * |
block_list |
) |
|
remove correct text
- Parameters:
-
ROW* find_row_of_box |
( |
BLOCK_LIST * |
block_list, |
|
|
const TBOX & |
box, |
|
|
inT16 & |
block_id, |
|
|
inT16 & |
row_id_to_process | |
|
) |
| | |
- Parameters:
-
| block_list | real blocks |
| box | from boxfile |
Register uch with unicharset_boxes.
void report_failed_box |
( |
inT16 |
boxfile_lineno, |
|
|
inT16 |
boxfile_charno, |
|
|
TBOX |
box, |
|
|
const char * |
box_ch, |
|
|
const char * |
err_msg | |
|
) |
| | |
void tidy_up |
( |
BLOCK_LIST * |
block_list, |
|
|
inT16 & |
ok_char_count, |
|
|
inT16 & |
ok_row_count, |
|
|
inT16 & |
unlabelled_words, |
|
|
inT16 * |
tgt_char_counts, |
|
|
inT16 & |
rebalance_count, |
|
|
UNICHAR_ID * |
min_uch_id, |
|
|
inT16 & |
min_samples, |
|
|
inT16 & |
final_labelled_blob_count, |
|
|
bool |
learn_character_fragments, |
|
|
bool |
learning | |
|
) |
| | |
Variable Documentation
"Err band as fract of xht"
"Page number to apply boxes from"
"Chars ignored for testing"
"Exposure value follows this pattern in the image" " filename. The name of the image files are expected" " to be in the form [lang].[fontname].exp[num].tif"