当前位置:网站首页>Use testeract JS offline recognition picture text record
Use testeract JS offline recognition picture text record
2022-07-19 10:43:00 【Program W】
One 、 summary
Tesseract.jsIt's a JavaScript library , You can get words in almost any language from the image .
- Offline version :https://github.com/jeromewu/tesseract.js-offline
- The electronic :https://github.com/jeromewu/tesseract.js-electron
- Custom training data :https://github.com/jeromewu/tesseract.js-custom-traineddata
- Chrome Expand #1:https://github.com/jeromewu/tesseract.js-chrome-extension
- Chrome Expand #2:https://github.com/fxnoob/image-to-text
- Firefox Expand :https://github.com/gnonio/korporize
- Use Vue:https://github.com/jeromewu/tesseract.js-vue-app
- Use Angular:https://github.com/jeromewu/tesseract.js-angular-app
- Use React:https://github.com/jeromewu/tesseract.js-react-app
- Typescript:https://github.com/jeromewu/tesseract.js-typescript
- Real time video recognition :https://github.com/jeromewu/tesseract.js-video
Two 、 Offline version
- clone
git clone https://github.com/jeromewu/tesseract.js-offline
- Dependent Download
yarn/npm install
- start-up
- visit
http://127.0.0.1:3000/browser/index.html - Or do not start directly to
htmlDocument carried outOpen with Live Server
npm run start
- Directly use the script to run the English example
const {
createWorker } = require('tesseract.js');
const path = require('path');
// Language settings , Single language recognition
// chi_sim----eng
const language = 'eng'
const worker = createWorker({
langPath: path.join(__dirname, '..', 'lang-data'),
logger: m => console.log(m),
});
(async () => {
await worker.load();
await worker.loadLanguage(language);
await worker.initialize(language);
const {
data: {
text } } = await worker.recognize(path.join(__dirname, '..', 'images/en', 'demo_eurotext.png'));
console.log(text);
await worker.terminate();
})();
node .\node\index.js


- Identify other languages
chi_simIt's Chinese
Download other language training data
- Place on
lang-data - It will be decompressed after application

边栏推荐
- HCIA review and answer 2022.7.6
- If you use mybatics to access Damon database, is it exactly the same? Because the SQL syntax has not changed. Right?
- The use and Simulation of stack and queue in STL
- Know what it is, and know why, JS object creation and inheritance
- 欧拉角,轴角,四元数与旋转矩阵详解
- unity3d中的旋转
- LeetCode 2315. 统计星号(字符串)
- R language uses LM function to build linear regression model, and uses subset function to specify the subset of data set to build regression model (uses subset function to filter the data subset that
- Leetcode丑数题解
- Domestic flagship mobile phones have a serious price foam, and second-hand phones are more cost-effective than new ones, or buy iPhones
猜你喜欢
随机推荐
MFC|框架下自绘CEdit控件
Convert excel table to word table, and keep the formula in Excel table unchanged
Crud code practice of user management based on koa2 + MySQL
国产旗舰手机价格泡沫严重,二手比新机更划算,要不然就买iPhone
openfoam热流边界条件
读已提交级别下 注解事务+分布式锁结合引起的事故--活动购买机会的错乱
37. flex布局
[design process] Net ORM FreeSQL wheredynamicfilter dynamic table query function
架构实战营|模块7
B. Accuratelee [double pointer] [substr function]
TS解决引入插件的类型文件不存在的问题
IP SAN拥有独立的文件系统,应用服务器通过网络共享协议访问到IP SAN后,可以对文件系统中的文件进行读写操作
LeetCode 2319. 判断矩阵是否是一个 X 矩阵
Brush questions with binary tree (2)
新能源赛道已经高位风险,提醒大家注意安全
[LeetCode周赛复盘] 第 302 场周赛20220717
新增、修改操作时自定义复杂逻辑校验-2022新项目
Thread pool principle
Takeout ordering system based on wechat applet
Autojs learning - multi function treasure chest - bottom








