tesseract.js 文字识别
最后更新于:2022-04-02 03:13:26
[TOC]
>[demo](https://tesseract.projectnaptha.com/)
> [github](https://github.com/naptha/tesseract.js#tesseractjs)
## 实例
### hello world
```
import Tesseract from 'tesseract.js';
Tesseract.recognize(
'https://tesseract.projectnaptha.com/img/eng_bw.png',
'eng',
{ logger: m => console.log(m) }
).then(({ data: { text } }) => {
console.log(text);
})
```
';