|
|
|
@ -212,8 +212,8 @@ module.exports = (TessModule, api, output, options) => {
@@ -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'), |
|
|
|
|