Skip to content
Snippets Groups Projects
Unverified Commit 73ddb60c authored by ThibG's avatar ThibG Committed by GitHub
Browse files

Fix OCR lang data failing to load (#15519)


Fixes #15472

Co-authored-by: default avatarClaire <claire.github-309c@sitedethib.com>
parent a1a8aa4a
No related branches found
No related tags found
No related merge requests found
......@@ -227,7 +227,7 @@ class FocalPointModal extends ImmutablePureComponent {
const worker = createWorker({
workerPath: tesseractWorkerPath,
corePath: tesseractCorePath,
langPath: assetHost,
langPath: `${assetHost}/ocr/lang-data/`,
logger: ({ status, progress }) => {
if (status === 'recognizing text') {
this.setState({ ocrStatus: 'detecting', progress });
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment