This repository contains the source code of SEMv3: A Fast and Robust Approach to Table Separation Line Detection.
SEMv3 solves the table structure recognition followed "split-and-merge" paradigm. During the split stage, we introduce a Keypoint Offset Regression (KOR) module, which effectively detects table separation lines by directly regressing the offset of each line relative to its keypoint proposals. Moreover, in the merge stage, we define a series of merge actions to efficiently describe the table structure based on table grids.
pip install requirements.txt
You need to configure the dataset and working path and other information inside the config file,'./libs/configs/semv3.py' , according to your situation.
training:
python runner/train.py --cfg semv3
evaluation:
python runner/eval.py --cfg semv3
inference:
python runner/infer.py --cfg semv3
This implementation has been based on the repository SEMv2.
Chunxia Qin and Zhenrong Zhang contributed equally to the project.