Skip to content
/ OCRAPI Public

Based on Flask & CnOcr. 🎨✨可在局域网部署一个轻量级的光学字符识别系统。

License

Notifications You must be signed in to change notification settings

fly6022/OCRAPI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

OCRAPI

Based on Flask & CnOcr. 🎨✨可在局域网部署一个轻量级的光学字符识别系统。

部署

安装依赖

pip3 install -r requirements.txt

运行

只需要在程序所在目录运行以下命令,即可在 10000端口完成部署。

py ./app.py

使用

客户端与服务端采用 POST方法连接。

提供了2个接口,可通过 Postman进行测试。

接口1

API请求地址:http://127.0.0.1:10000/api/ocr/v1

Content-Type Key Value
multipart/form-data image URL

接口2

API请求地址:http://127.0.0.1:10000/api/ocr/v2

Content-Type Key Value
multipart/form-data image file

示例

接口1

API请求地址:http://127.0.0.1:10000/api/ocr/v1

Content-Type Key Value
multipart/form-data image https://cnocr.readthedocs.io/zh/latest/examples/multi-line_cn1.png

接口2

API请求地址:http://127.0.0.1:10000/api/ocr/v2

Content-Type Key Value
multipart/form-data image file

About

Based on Flask & CnOcr. 🎨✨可在局域网部署一个轻量级的光学字符识别系统。

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages