Skip to content

Gaotianhong/MyOCR

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

MyOCR

包含以下功能

  1. 自定义模版
  2. 基于模板识别
  3. 通用文本识别
  4. 表格识别

1. 前端部署

直接运行:

cd ocr-ui
npm install
npm run dev

构建dist安装包:

npm run build:prod

2. 后端部署

构建jar包

可使用 IDEA 自带功能进行构建

运行程序

java -jar iocr-demo.jar

文件说明

# 模板索引文件路径 file/templates.json
# 模版配置文件路径 file/templates/202842e8155948b1b36baf516e030671.json
# 模板图片存储路径 file/images/3a37996f1c2f4beab972ca3e5f9b6a97.png
# Excel模版路径 file/template1.xlsx
# 测试图片路径 file/测试数据-1.png
# 识别结果路径 file/tables/result.xlsx

3. 功能测试

自定义模版

红色为锚点框,蓝色为内容识别区

image

基于模版识别

选择框选好的模版,再上传文件,包括Excel模版和需要识别的图片

image

Excel模版如下:

image

识别结果如下:

image

通用文本识别

文本识别,直接返回识别结果

image

表格识别

无需制作模版,但识别精度较低

image

识别结果如下:

image

4. 注册百度开发者账号

在此次填入 API Key 和 Secret Key

文件名:AuthService.java

image

About

在线模板文字识别平台

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published