https://github.com/srect/recognition
图片文字识别
https://github.com/srect/recognition
Last synced: 28 days ago
JSON representation
图片文字识别
- Host: GitHub
- URL: https://github.com/srect/recognition
- Owner: sRect
- Created: 2021-01-14T10:14:06.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-02-03T06:10:58.000Z (over 5 years ago)
- Last Synced: 2025-01-02T15:45:24.449Z (over 1 year ago)
- Language: JavaScript
- Size: 45.7 MB
- Stars: 0
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## 图片文字识别
### 1. 直接使用
> **注意**:请提前在根目录新建好download文件夹,并把图片放置文件夹内
1. 识别网络图片
```shell
node cli.js --url="http//xxxxxx.jpg"
```
2. 识别本地图片
```shell
node cli.js --url="xxxxxx.jpg" --isLocalUrl=true
```
### 2. 打包成pkg使用
1. 识别网络图片
```shell
recognition.exe --url="http//xxxxxx.jpg" --isPkg=true
```
2. 识别本地图片
```shell
recognition.exe --url="xxxxxx.jpg" --isLocalUrl=true --isPkg=true
```
### 3. 遗留的问题
> 打包成exe可执行文件,运行命令后,会出现[报错](https://github.com/vercel/pkg/issues/903),还未解决。
```
internal/modules/cjs/loader.js:636
throw err;
^
Error: Cannot find module 'E:\my\resource\recognition\dist\--debug-port=9230'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:634:15)
at Function.Module._resolveFilename (pkg/prelude/bootstrap.js:1346:46)
at Function.Module._load (internal/modules/cjs/loader.js:560:25)
at Function.Module.runMain (pkg/prelude/bootstrap.js:1375:12)
at startup (internal/bootstrap/node.js:320:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:660:3)
```