Skip to content

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-TypeKeyValue
multipart/form-dataimageURL

接口2

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

Content-TypeKeyValue
multipart/form-dataimagefile

示例

接口1

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

Content-TypeKeyValue
multipart/form-dataimagehttps://cnocr.readthedocs.io/zh/latest/examples/multi-line_cn1.png

接口2

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

Content-TypeKeyValue
multipart/form-dataimagefile

About

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

Topics

Resources

Stars

5 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages