8000 GitHub - luxu1220/chinese-ocr: 本项目构建了一个简单 Flask 应用,提供中文 OCR 功能, 并将识别结果存储在 Mysql 数据库中,仅做展示使用。
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

本项目构建了一个简单 Flask 应用,提供中文 OCR 功能, 并将识别结果存储在 Mysql 数据库中,仅做展示使用。

License

Notifications You must be signed in to change notification settings

luxu1220/chinese-ocr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

项目背景

本项目构建了一个简单 Flask 应用,提供中文 OCR 功能, 并将识别结果存储在 Mysql 数据库中,仅做展示使用。

安装

  1. clone 项目 git clone https://github.com/WestonLu/chinese-ocr.git
  2. build 后端镜像,在 chinese-ocr/backend 文件夹内执行 docker build -t ocr-backend .
  3. build mysql镜像,在 chinese-ocr/mysql 文件夹内执行 docker build -t ocr-mysql .
  4. 使用 docker-compose 启动服务, 在 chinese-ocr 文件夹内执行 docker-compose up -d

如果 build 镜像时使用了其他 tag,请自行修改 docker-compose.yaml 中的镜像名。

使用

浏览器访问 http://127.0.0.1:5005/ 可查看 API。

测试图像及识别结果见下图。

相关项目

ocr 部分来自 https://github.com/DayBreak-u/chineseocr_lite

About

本项目构建了一个简单 Flask 应用,提供中文 OCR 功能, 并将识别结果存储在 Mysql 数据库中,仅做展示使用。

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0