diff --git a/api/baseapi.cpp b/api/baseapi.cpp index 1bf1b43d08..94a772c73e 100644 --- a/api/baseapi.cpp +++ b/api/baseapi.cpp @@ -1431,8 +1431,8 @@ static void AddBoxToTSV(const PageIterator *it, it->BoundingBox(level, &left, &top, &right, &bottom); hocr_str->add_str_int("\t", left); hocr_str->add_str_int("\t", top); - hocr_str->add_str_int("\t", right - left + 1); - hocr_str->add_str_int("\t", bottom - top + 1); + hocr_str->add_str_int("\t", right - left); + hocr_str->add_str_int("\t", bottom - top); } diff --git a/api/renderer.cpp b/api/renderer.cpp index 2d0dc67107..4a88a24608 100644 --- a/api/renderer.cpp +++ b/api/renderer.cpp @@ -196,7 +196,7 @@ bool TessHOcrRenderer::AddImageHandler(TessBaseAPI* api) { } /********************************************************************** - * HOcr Text Renderer interface implementation + * TSV Text Renderer interface implementation **********************************************************************/ TessTsvRenderer::TessTsvRenderer(const char *outputbase) : TessResultRenderer(outputbase, "tsv") {