| 1396 | } |
| 1397 | |
| 1398 | static void AddBoxToTSV(const PageIterator* it, PageIteratorLevel level, |
| 1399 | STRING* hocr_str) { |
| 1400 | int left, top, right, bottom; |
| 1401 | it->BoundingBox(level, &left, &top, &right, &bottom); |
| 1402 | hocr_str->add_str_int("\t", left); |
| 1403 | hocr_str->add_str_int("\t", top); |
| 1404 | hocr_str->add_str_int("\t", right - left); |
| 1405 | hocr_str->add_str_int("\t", bottom - top); |
| 1406 | } |
| 1407 | |
| 1408 | /** |
| 1409 | * Make a HTML-formatted string with hOCR markup from the internal |
no test coverage detected