Skip to content

Commit

Permalink
Remove excess slashes from Tesseract paths
Browse files Browse the repository at this point in the history
  • Loading branch information
n1474335 committed Sep 25, 2019
1 parent b4ae4c5 commit 928f1c3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/core/operations/OpticalCharacterRecognition.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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 => {
Expand Down

0 comments on commit 928f1c3

Please sign in to comment.