-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgrade tesseract.js-core to fix issue
- Loading branch information
Showing
5 changed files
with
8 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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! | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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', | ||
}); | ||
``` | ||
|
||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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`, | ||
}; | ||
|
||
/** | ||
|