mirror of
https://github.com/gchq/CyberChef.git
synced 2024-11-16 00:48:31 +01:00
Remove excess slashes from Tesseract paths
This commit is contained in:
parent
b4ae4c5a00
commit
928f1c3e4b
1 changed files with 3 additions and 3 deletions
|
@ -62,9 +62,9 @@ class OpticalCharacterRecognition extends Operation {
|
||||||
try {
|
try {
|
||||||
const image = `data:${type};base64,${toBase64(input)}`;
|
const image = `data:${type};base64,${toBase64(input)}`;
|
||||||
const worker = new TesseractWorker({
|
const worker = new TesseractWorker({
|
||||||
workerPath: `${assetDir}/tesseract/worker.min.js`,
|
workerPath: `${assetDir}tesseract/worker.min.js`,
|
||||||
langPath: `${assetDir}/tesseract/lang-data/`,
|
langPath: `${assetDir}tesseract/lang-data`,
|
||||||
corePath: `${assetDir}/tesseract/tesseract-core.wasm.js`,
|
corePath: `${assetDir}tesseract/tesseract-core.wasm.js`,
|
||||||
});
|
});
|
||||||
const result = await worker.recognize(image)
|
const result = await worker.recognize(image)
|
||||||
.progress(progress => {
|
.progress(progress => {
|
||||||
|
|
Loading…
Reference in a new issue