diff --git a/lib/Tesseract.js b/lib/Tesseract.js index 1904345..a467e4c 100644 --- a/lib/Tesseract.js +++ b/lib/Tesseract.js @@ -6,7 +6,7 @@ var Tesseract = (function(){ //https://rawgit.com/naptha/tesseract.js/master/worker/worker.js for testing var blob = new Blob(["importScripts('https://cdn.rawgit.com/naptha/tessdata/worker/worker.js');"]); - console.log('localhost') + // console.log('localhost') var worker = new Worker(window.URL.createObjectURL(blob)); worker.postMessage({init: {mem: 16777216*6}}) var bigworker = false diff --git a/package.json b/package.json index 6ca6dad..adde56a 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,8 @@ "main": "Tesseract.js", "dependencies": { "level-js": "^2.1.6", - "pako": "^0.2.7" + "pako": "^0.2.7", + "tesseract.js-core": "^1.0.0" }, "devDependencies": {}, "scripts": { diff --git a/worker_src/worker.js b/worker_src/worker.js index b773139..9b77e27 100644 --- a/worker_src/worker.js +++ b/worker_src/worker.js @@ -1,4 +1,4 @@ -var Tesseract304 = require('tesseract') +var Tesseract304 = require('tesseract.js-core') var leveljs = require('level-js') var db; if (typeof indexedDB === 'undefined'){