From 232d8e854d1443758bbca7e88d1d3400526ba152 Mon Sep 17 00:00:00 2001 From: jeromewu Date: Fri, 10 May 2019 09:19:02 +0800 Subject: [PATCH] Fix unable to fetch chi_sim traineddata issue --- demo.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/demo.js b/demo.js index 2a0f0cb..c59c990 100644 --- a/demo.js +++ b/demo.js @@ -25,7 +25,9 @@ var lang_drop_instructions = { rus: 'a Russian' } -var tessWorker = new Tesseract.TesseractWorker(); +var tessWorker = new Tesseract.TesseractWorker({ + langPath: 'http://tessdata.projectnaptha.com/4.0.0', +}); function setUp(){ input_overlay.width = input.naturalWidth