jackiezzq / tableImageParser_tx

table structure recognition

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

tableImageParser

本项目通过腾讯分享文章,复现了腾讯表格结果解析文章地址为https://zhuanlan.zhihu.com/p/69793742 (Table Structure Recognition from Tencent)

环境(Requirements)

pip install -r requirements.txt

例子🌰(Demo)

  • 修改inference 中main函数所需路径

python inference.py

训练(train)

  • 修改train.py 中checkpoint_path 为模型路径
  • 修改dataf.py 中training_data_path 为训练数据路径

python train.py

可视化实例

例子🌰1

raw nrow ncol

例子🌰2

raw row row

更新 8.17

  • 修改dataf.py 中的数据预处理,具体效果 根据自己数据进行适量修改。(数据增强对效果还很重要)
  • 添加post.py 用于后处理的demo。具体思路通过霍夫变换的HoughLinesP函数的线段合集,进行直线断连接修复。
  • 预训练模型: 链接: https://pan.baidu.com/s/1JXEKuWYtbyF6vFGQIzyE6g 提取码: 4mbb

其他

训练数据与预训练模型 关注微信公众账号 hulugeAI 留言:table parser

About

table structure recognition


Languages

Language:Python 100.0%