Skip to content

Commit

Permalink
Fixed documentation for v5
Browse files Browse the repository at this point in the history
  • Loading branch information
Balearica committed Nov 14, 2023
1 parent 3da5350 commit c01ca0a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@

```javascript
const { createWorker } = Tesseract;
const worker = await createWorker({
const worker = await createWorker('eng', 1, {
langPath: '...',
logger: m => console.log(m),
});
Expand Down
2 changes: 1 addition & 1 deletion docs/local-installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Because of this we recommend loading `tesseract.js` from a CDN. But if you reall
In Node.js environment, the only path you may want to customize is languages/langPath.

```javascript
const worker = await createWorker({
const worker = await createWorker('eng', 1, {
workerPath: 'https://cdn.jsdelivr.net/npm/tesseract.js@v5.0.0/dist/worker.min.js',
langPath: 'https://tessdata.projectnaptha.com/4.0.0',
corePath: 'https://cdn.jsdelivr.net/npm/tesseract.js-core@v5.0.0',
Expand Down

0 comments on commit c01ca0a

Please sign in to comment.