黑白梦黑白梦

  • 文章
  • 专栏
  • 文章
  • 专栏

©2015-2026 黑白梦 粤ICP备15018165号

联系: heibaimeng@foxmail.com

全部文章

tesseract.js 文字 OCR 识别库

发布于 2020-03-25更新于 2023-04-08约 1 分钟

适用于 100 多种语言的纯 Javascript OCR,无需联网即可使用。

https://github.com/naptha/tesseract.js

使用:

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);
})

本文收录于专栏

一些好用的 npm 前端开源库

收集一些好用的前端开源库,主要是 npm 包

0 篇文章更新于 2026-08-17
上一篇you-get 视频下载工具使用笔记下一篇fetch-jsonp 跨域 jsonp 请求