Skip to content

Commit

Permalink
Update README code example
Browse files Browse the repository at this point in the history
  • Loading branch information
Balearica authored Oct 19, 2023
1 parent 577752d commit 04d1c80
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ import { createWorker } from 'tesseract.js';

(async () => {
const worker = await createWorker('eng');
const data = await worker.recognize('https://tesseract.projectnaptha.com/img/eng_bw.png');
console.log(data.data.text);
const ret = await worker.recognize('https://tesseract.projectnaptha.com/img/eng_bw.png');
console.log(ret.data.text);
await worker.terminate();
})();
```
Expand Down

0 comments on commit 04d1c80

Please sign in to comment.