Skip to content

Commit

Permalink
Upgrade tesseract.js-core to fix issue
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromewu committed May 17, 2019
1 parent 51e89ed commit 794a174
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ Tesseract.js works with a `<script>` tag via local copy or CDN, with webpack via

You can simply include Tesseract.js with a CDN like this:
```html
<script src='https://unpkg.com/[email protected].5/dist/tesseract.min.js'></script>
<script src='https://unpkg.com/[email protected].6/dist/tesseract.min.js'></script>
```

After including your scripts, the `Tesseract` variable will be defined globally!
Expand Down
4 changes: 2 additions & 2 deletions docs/local-installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ In Node.js environment, the only path you may want to customize is languages/lan

```javascript
const worker = Tesseract.TesseractWorker({
workerPath: 'https://unpkg.com/[email protected].5/dist/worker.min.js',
workerPath: 'https://unpkg.com/[email protected].6/dist/worker.min.js',
langPath: 'https://tessdata.projectnaptha.com/4.0.0',
corePath: 'https://unpkg.com/[email protected].9/tesseract-core.wasm.js',
corePath: 'https://unpkg.com/[email protected].10/tesseract-core.wasm.js',
});
```

Expand Down
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"is-url": "1.2.2",
"node-fetch": "^2.3.0",
"resolve-url": "^0.2.1",
"tesseract.js-core": "^2.0.0-beta.9",
"tesseract.js-core": "^2.0.0-beta.10",
"tesseract.js-utils": "^1.0.0-beta.5"
},
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion src/browser/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ exports.defaultOptions = {
* If browser doesn't support WebAssembly,
* load ASM version instead
*/
corePath: `https://unpkg.com/[email protected].9/tesseract-core.${typeof WebAssembly === 'object' ? 'wasm' : 'asm'}.js`,
corePath: `https://unpkg.com/[email protected].10/tesseract-core.${typeof WebAssembly === 'object' ? 'wasm' : 'asm'}.js`,
};

/**
Expand Down

0 comments on commit 794a174

Please sign in to comment.