From c7e8d302803fa4c9ff56501ba0a49867def4994b Mon Sep 17 00:00:00 2001 From: Stefan Weil Date: Sun, 16 Dec 2018 15:07:02 +0100 Subject: [PATCH] Fix value for PHYSICAL_IMG_NR in ALTO output Signed-off-by: Stefan Weil --- src/api/altorenderer.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/api/altorenderer.cpp b/src/api/altorenderer.cpp index 497eb21394..0cbffb780d 100644 --- a/src/api/altorenderer.cpp +++ b/src/api/altorenderer.cpp @@ -124,7 +124,6 @@ char* TessBaseAPI::GetAltoText(ETEXT_DESC* monitor, int page_number) { return nullptr; int lcnt = 0, bcnt = 0, wcnt = 0; - int page_id = page_number; if (input_file_ == nullptr) SetInputName(nullptr); @@ -149,9 +148,8 @@ char* TessBaseAPI::GetAltoText(ETEXT_DESC* monitor, int page_number) { alto_str << "\t\t\n" + << "\" PHYSICAL_IMG_NR=\"" << page_number << "\"" + << " ID=\"page_" << page_number << "\">\n" << "\t\t\t\n";