From cc61520fe4e6d0a4ebde4a843198d64c7d33e9e9 Mon Sep 17 00:00:00 2001 From: Jerome Wu Date: Sun, 26 May 2019 01:07:04 +0800 Subject: [PATCH] Dump hocr, tsv, box, unlv, osd in final result --- src/common/dump.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/common/dump.js b/src/common/dump.js index fe11f55..ecd68aa 100644 --- a/src/common/dump.js +++ b/src/common/dump.js @@ -177,7 +177,11 @@ module.exports = (TessModule, api) => { return { text: api.GetUTF8Text(), - html: deindent(api.GetHOCRText()), + hocr: deindent(api.GetHOCRText()), + tsv: api.GetTSVText(), + box: api.GetBoxText(), + unlv: api.GetUNLVText(), + osd: api.GetOsdText(), confidence: api.MeanTextConf(), blocks, psm: enumToString(api.GetPageSegMode(), 'PSM'),