包含以下功能
- 自定义模版
- 基于模板识别
- 通用文本识别
- 表格识别
cd ocr-ui
npm install
npm run dev
npm run build:prod
可使用 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
红色为锚点框,蓝色为内容识别区
选择框选好的模版,再上传文件,包括Excel模版和需要识别的图片
Excel模版如下:
识别结果如下:
文本识别,直接返回识别结果
无需制作模版,但识别精度较低
识别结果如下:
在此次填入 API Key 和 Secret Key
文件名:AuthService.java