198 lastdot = strrchr (name.
string (),
'.');
200 name[lastdot-name.
string()] =
'\0';
203 int width = pixGetWidth(tess->pix_binary());
204 int height = pixGetHeight(tess->pix_binary());
211 TO_BLOCK_LIST land_blocks, port_blocks;
214 if (port_blocks.empty()) {
216 tess->mutable_textord()->find_components(tess->pix_binary(),
217 &blocks, &port_blocks);
224 tess->mutable_textord()->filter_blobs(page_box.
topright(),
228 return os_detect(&port_blocks, osr, tess);
const ICOORD & topright() const
bool read_unlv_file(STRING name, inT32 xsize, inT32 ysize, BLOCK_LIST *blocks)
const char * string() const
void FullPageBlock(int width, int height, BLOCK_LIST *blocks)
void remove_nontext_regions(tesseract::Tesseract *tess, BLOCK_LIST *blocks, TO_BLOCK_LIST *to_blocks)
int os_detect(TO_BLOCK_LIST *port_blocks, OSResults *osr, tesseract::Tesseract *tess)