Skip to content

Commit

Permalink
Fixed bug with saving images per #588
Browse files Browse the repository at this point in the history
  • Loading branch information
Balearica committed Oct 14, 2022
1 parent c7c2d73 commit d5c1f78
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/worker-script/utils/dump.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
Expand Down

0 comments on commit d5c1f78

Please sign in to comment.