From 928f1c3e4ba3a3ee9ea5aa0b6fd0bed7849c2df3 Mon Sep 17 00:00:00 2001 From: n1474335 Date: Wed, 25 Sep 2019 15:39:04 +0100 Subject: [PATCH] Remove excess slashes from Tesseract paths --- src/core/operations/OpticalCharacterRecognition.mjs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/core/operations/OpticalCharacterRecognition.mjs b/src/core/operations/OpticalCharacterRecognition.mjs index 5a20f123..1c26e55f 100644 --- a/src/core/operations/OpticalCharacterRecognition.mjs +++ b/src/core/operations/OpticalCharacterRecognition.mjs @@ -62,9 +62,9 @@ class OpticalCharacterRecognition extends Operation { try { const image = `data:${type};base64,${toBase64(input)}`; const worker = new TesseractWorker({ - workerPath: `${assetDir}/tesseract/worker.min.js`, - langPath: `${assetDir}/tesseract/lang-data/`, - corePath: `${assetDir}/tesseract/tesseract-core.wasm.js`, + workerPath: `${assetDir}tesseract/worker.min.js`, + langPath: `${assetDir}tesseract/lang-data`, + corePath: `${assetDir}tesseract/tesseract-core.wasm.js`, }); const result = await worker.recognize(image) .progress(progress => {