Skip to content

Commit 5404b25

Browse files
authored
Updated version numbers in documentation
1 parent e2f2768 commit 5404b25

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

docs/local-installation.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,19 @@ In Node.js environment, the only path you may want to customize is languages/lan
1010

1111
```javascript
1212
Tesseract.recognize(image, langs, {
13-
workerPath: 'https://unpkg.com/tesseract.js@v2.0.0/dist/worker.min.js',
13+
workerPath: 'https://unpkg.com/tesseract.js@v4.0.0/dist/worker.min.js',
1414
langPath: 'https://tessdata.projectnaptha.com/4.0.0',
15-
corePath: 'https://unpkg.com/tesseract.js-core@v2.0.0/tesseract-core.wasm.js',
15+
corePath: 'https://unpkg.com/tesseract.js-core@v4.0.0/tesseract-core.wasm.js',
1616
})
1717
```
1818

1919
Or
2020

2121
```javascript
2222
const worker = await createWorker({
23-
workerPath: 'https://unpkg.com/tesseract.js@v2.0.0/dist/worker.min.js',
23+
workerPath: 'https://unpkg.com/tesseract.js@v4.0.0/dist/worker.min.js',
2424
langPath: 'https://tessdata.projectnaptha.com/4.0.0',
25-
corePath: 'https://unpkg.com/tesseract.js-core@v2.0.0/tesseract-core.wasm.js',
25+
corePath: 'https://unpkg.com/tesseract.js-core@v4.0.0/tesseract-core.wasm.js',
2626
});
2727
```
2828

@@ -33,6 +33,6 @@ A string specifying the location of the [worker.js](./dist/worker.min.js) file.
3333
A string specifying the location of the tesseract language files, with default value 'https://tessdata.projectnaptha.com/4.0.0'. Language file URLs are calculated according to the formula `langPath + langCode + '.traineddata.gz'`.
3434

3535
### corePath
36-
A string specifying the location of the [tesseract.js-core library](https://github.com/naptha/tesseract.js-core), with default value 'https://unpkg.com/tesseract.js-core@v2.0.0/tesseract-core.wasm.js'.
36+
A string specifying the location of the [tesseract.js-core library](https://github.com/naptha/tesseract.js-core), with default value 'https://unpkg.com/tesseract.js-core@v4.0.0/tesseract-core.wasm.js'.
3737

38-
Another WASM option is 'https://unpkg.com/tesseract.js-core@v2.0.0/tesseract-core.js' which is a script that loads 'https://unpkg.com/tesseract.js-core@v2.0.0/tesseract-core.wasm'. But it fails to fetch at this moment.
38+
Another WASM option is 'https://unpkg.com/tesseract.js-core@v4.0.0/tesseract-core.js' which is a script that loads 'https://unpkg.com/tesseract.js-core@v4.0.0/tesseract-core.wasm'. But it fails to fetch at this moment.

0 commit comments

Comments
 (0)