1 Star 0 Fork 68

狮城Platform / document-ocr

forked from Rocky / document-ocr 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
README.md 548 Bytes
一键复制 编辑 原始数据 按行查看 历史
rockyzhengwu 提交于 2019-10-26 23:50 . add

单字识别

可以使用合成工具合成数据

模型采用 densenet

使用

  1. 准备数据生成image_list 文件格式如下, 准备对应的字典文件
/data/9916/Z01.png 9916
/data/9916/Z02.png 9916
  1. 训练数据

训练不需要生成tfrecord 文件

num_class: 字典文件参数

python train.py --train_image_list <image_list> --num_class <num_class> --checkpoint_path <checkpont_path>

其他参数见代码

  1. 测试

python eval.py 具体参数详见代码

Python
1
https://gitee.com/beituo/document-ocr.git
git@gitee.com:beituo/document-ocr.git
beituo
document-ocr
document-ocr
master

搜索帮助