Browse Source

Dump hocr, tsv, box, unlv, osd in final result

pull/288/head
Jerome Wu 6 years ago
parent
commit
cc61520fe4
  1. 6
      src/common/dump.js

6
src/common/dump.js

@ -177,7 +177,11 @@ module.exports = (TessModule, api) => { @@ -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'),

Loading…
Cancel
Save