mirror of
https://github.com/gchq/CyberChef.git
synced 2024-11-02 14:11:02 +01:00
Remove excess slashes from Tesseract paths
This commit is contained in:
parent
b4ae4c5a00
commit
928f1c3e4b
@ -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 => {
|
||||
|
Loading…
Reference in New Issue
Block a user