Browse Source

fixed Tesseract.js to include __worker__

pull/12/head
Guillermo 10 years ago
parent
commit
9b38d4f91b
  1. 2
      lib/Tesseract.2015.07.15.v4.js
  2. 28443
      lib/worker.2015.07.15.v.3.js
  3. 2
      src/Tesseract.js

2
lib/Tesseract.2015.07.15.v.3.js → lib/Tesseract.2015.07.15.v4.js

@ -6,7 +6,7 @@ var Tesseract = (function(){ @@ -6,7 +6,7 @@ var Tesseract = (function(){
//https://rawgit.com/naptha/tesseract.js/master/worker/worker.js for testing
//https://cdn.rawgit.com/naptha/tesseract.js/master/worker/worker.js
var blob = new Blob(["importScripts('__tesseractjs__');"]); // changed on build
var blob = new Blob(["importScripts('https://cdn.rawgit.com/naptha/tesseract.js/master/lib/worker.VERSION.js');"]); // changed on build
// console.log('localhost')
var worker = new Worker(window.URL.createObjectURL(blob));
worker.postMessage({init: {mem: 16777216*6}})

28443
lib/worker.2015.07.15.v.3.js

File diff suppressed because one or more lines are too long

2
src/Tesseract.js

@ -6,7 +6,7 @@ var Tesseract = (function(){ @@ -6,7 +6,7 @@ var Tesseract = (function(){
//https://rawgit.com/naptha/tesseract.js/master/worker/worker.js for testing
//https://cdn.rawgit.com/naptha/tesseract.js/master/worker/worker.js
var blob = new Blob(["importScripts('__tesseractjs__');"]); // changed on build
var blob = new Blob(["importScripts('__worker__');"]); // changed on build
// console.log('localhost')
var worker = new Worker(window.URL.createObjectURL(blob));
worker.postMessage({init: {mem: 16777216*6}})

Loading…
Cancel
Save