diff options
author | Balearica <you@example.com> | 2022-10-14 09:01:29 +0300 |
---|---|---|
committer | Balearica <you@example.com> | 2022-10-14 09:01:29 +0300 |
commit | d5c1f78b9451d0e6f222231e4607be2b0e8aa551 (patch) | |
tree | 03037d8efa43f8e89eba292307f8c6947d2a00e1 | |
parent | c7c2d73d58fc258f3e2fb3ef24e50b7c939956ea (diff) |
Fixed bug with saving images per #588dev/v4
-rw-r--r-- | src/worker-script/utils/dump.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/worker-script/utils/dump.js b/src/worker-script/utils/dump.js index e7f097b..2b908b6 100644 --- a/src/worker-script/utils/dump.js +++ b/src/worker-script/utils/dump.js @@ -212,8 +212,8 @@ module.exports = (TessModule, api, output, options) => { osd: output.osd ? api.GetOsdText() : null, pdf: output.pdf ? getPDFInternal(options.pdfTitle ?? 'Tesseract OCR Result', options.pdfTextOnly ?? false) : null, imageColor: output.imageColor ? getImage(imageType.COLOR) : null, - imageGrey: output.imageColor ? getImage(imageType.GREY) : null, - imageBinary: output.imageColor ? getImage(imageType.BINARY) : null, + imageGrey: output.imageGrey ? getImage(imageType.GREY) : null, + imageBinary: output.imageBinary ? getImage(imageType.BINARY) : null, confidence: api.MeanTextConf(), blocks: output.blocks ? blocks : null, psm: enumToString(api.GetPageSegMode(), 'PSM'), |