void make_words( //make words ICOORD page_tr, //top right float gradient, //page skew BLOCK_LIST *blocks, //block list TO_BLOCK_LIST *land_blocks, //rotated for landscape TO_BLOCK_LIST *port_blocks, //output list tesseract::Tesseract* tess ) { TO_BLOCK_IT block_it; //iterator TO_BLOCK *block; //current block; compute_fixed_pitch(page_tr, port_blocks, gradient, FCOORD (0.0f, -1.0f), !(BOOL8) textord_test_landscape, tess); if (global_monitor != NULL) { global_monitor->ocr_alive = TRUE; global_monitor->progress = 25; } to_spacing(page_tr, port_blocks); block_it.set_to_list (port_blocks); for (block_it.mark_cycle_pt (); !block_it.cycled_list (); block_it.forward ()) { block = block_it.data (); // set_row_spaces(block,FCOORD(1,0),!(BOOL8)textord_test_landscape); //make proper classes make_real_words (block, FCOORD (1.0f, 0.0f)); } }
void make_words(tesseract::Textord *textord, ICOORD page_tr, // top right float gradient, // page skew BLOCK_LIST *blocks, // block list TO_BLOCK_LIST *port_blocks) { // output list TO_BLOCK_IT block_it; // iterator TO_BLOCK *block; // current block compute_fixed_pitch(page_tr, port_blocks, gradient, FCOORD(0.0f, -1.0f), !(BOOL8) textord_test_landscape); textord->to_spacing(page_tr, port_blocks); block_it.set_to_list(port_blocks); for (block_it.mark_cycle_pt(); !block_it.cycled_list(); block_it.forward()) { block = block_it.data(); make_real_words(textord, block, FCOORD(1.0f, 0.0f)); } }