Browse Source

integrated tesseract-core

pull/12/head
Guillermo 10 years ago
parent
commit
422e71dc4b
  1. 2
      lib/Tesseract.js
  2. 3
      package.json
  3. 2
      worker_src/worker.js

2
lib/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
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

3
package.json

@ -5,7 +5,8 @@ @@ -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": {

2
worker_src/worker.js

@ -1,4 +1,4 @@ @@ -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'){

Loading…
Cancel
Save