├── .flake8 ├── .github ├── ISSUE_TEMPLATE.md ├── ISSUE_TEMPLATE │ ├── bug-report.md │ ├── documentation.md │ └── feature-request.md └── PULL_REQUEST_TEMPLATE.md ├── .gitignore ├── .sun-ci.yml ├── LICENSE ├── MANIFEST.in ├── README.md ├── docs └── source │ ├── Makefile │ ├── _static │ └── .gitkeep │ ├── _templates │ └── .gitkeep │ ├── conf.py │ └── index.rst ├── example ├── .gitkeep ├── example.ipynb ├── fil-result │ ├── tmp0c879lqh │ │ ├── index.html │ │ ├── peak-memory-reversed.svg │ │ ├── peak-memory.prof │ │ └── peak-memory.svg │ └── tmp5f40b3ja │ │ ├── index.html │ │ ├── peak-memory-reversed.svg │ │ ├── peak-memory.prof │ │ └── peak-memory.svg └── table.png ├── pyproject.toml ├── requirements.txt ├── setup.cfg ├── setup.py ├── table_reconstruction ├── __init__.py ├── line_segmentation │ ├── __init__.py │ ├── line_segment.py │ ├── unet │ │ ├── __init__.py │ │ ├── resunet.py │ │ └── unet_parts.py │ └── utils.py ├── output │ ├── __init__.py │ ├── cell.py │ ├── element.py │ └── table.py ├── table_detection │ ├── __init__.py │ ├── detector.py │ ├── preprocess.py │ ├── utils.py │ └── yolov5 │ │ ├── __init__.py │ │ ├── hubconf.py │ │ └── models │ │ ├── __init__.py │ │ ├── common.py │ │ ├── experimental.py │ │ ├── utils.py │ │ └── yolo.py └── utils │ ├── __init__.py │ ├── cell_utils.py │ ├── lines_utils.py │ ├── mask_utils.py │ └── table_utils.py ├── tests ├── __init__.py ├── tableImg.jpg ├── test_line_segment.py ├── test_package.py └── test_table_detection.py └── tox.ini /.flake8: -------------------------------------------------------------------------------- 1 | [flake8] 2 | max-line-length = 88 3 | extend-ignore = E203 -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sun-asterisk-research/table_reconstruction/HEAD/.github/ISSUE_TEMPLATE.md -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/bug-report.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sun-asterisk-research/table_reconstruction/HEAD/.github/ISSUE_TEMPLATE/bug-report.md -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/documentation.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sun-asterisk-research/table_reconstruction/HEAD/.github/ISSUE_TEMPLATE/documentation.md -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/feature-request.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sun-asterisk-research/table_reconstruction/HEAD/.github/ISSUE_TEMPLATE/feature-request.md -------------------------------------------------------------------------------- /.github/PULL_REQUEST_TEMPLATE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sun-asterisk-research/table_reconstruction/HEAD/.github/PULL_REQUEST_TEMPLATE.md -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sun-asterisk-research/table_reconstruction/HEAD/.gitignore -------------------------------------------------------------------------------- /.sun-ci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sun-asterisk-research/table_reconstruction/HEAD/.sun-ci.yml -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sun-asterisk-research/table_reconstruction/HEAD/LICENSE -------------------------------------------------------------------------------- /MANIFEST.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sun-asterisk-research/table_reconstruction/HEAD/MANIFEST.in -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sun-asterisk-research/table_reconstruction/HEAD/README.md -------------------------------------------------------------------------------- /docs/source/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sun-asterisk-research/table_reconstruction/HEAD/docs/source/Makefile -------------------------------------------------------------------------------- /docs/source/_static/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /docs/source/_templates/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /docs/source/conf.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sun-asterisk-research/table_reconstruction/HEAD/docs/source/conf.py -------------------------------------------------------------------------------- /docs/source/index.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sun-asterisk-research/table_reconstruction/HEAD/docs/source/index.rst -------------------------------------------------------------------------------- /example/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /example/example.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sun-asterisk-research/table_reconstruction/HEAD/example/example.ipynb -------------------------------------------------------------------------------- /example/fil-result/tmp0c879lqh/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sun-asterisk-research/table_reconstruction/HEAD/example/fil-result/tmp0c879lqh/index.html -------------------------------------------------------------------------------- /example/fil-result/tmp0c879lqh/peak-memory-reversed.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sun-asterisk-research/table_reconstruction/HEAD/example/fil-result/tmp0c879lqh/peak-memory-reversed.svg -------------------------------------------------------------------------------- /example/fil-result/tmp0c879lqh/peak-memory.prof: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sun-asterisk-research/table_reconstruction/HEAD/example/fil-result/tmp0c879lqh/peak-memory.prof -------------------------------------------------------------------------------- /example/fil-result/tmp0c879lqh/peak-memory.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sun-asterisk-research/table_reconstruction/HEAD/example/fil-result/tmp0c879lqh/peak-memory.svg -------------------------------------------------------------------------------- /example/fil-result/tmp5f40b3ja/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sun-asterisk-research/table_reconstruction/HEAD/example/fil-result/tmp5f40b3ja/index.html -------------------------------------------------------------------------------- /example/fil-result/tmp5f40b3ja/peak-memory-reversed.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sun-asterisk-research/table_reconstruction/HEAD/example/fil-result/tmp5f40b3ja/peak-memory-reversed.svg -------------------------------------------------------------------------------- /example/fil-result/tmp5f40b3ja/peak-memory.prof: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sun-asterisk-research/table_reconstruction/HEAD/example/fil-result/tmp5f40b3ja/peak-memory.prof -------------------------------------------------------------------------------- /example/fil-result/tmp5f40b3ja/peak-memory.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sun-asterisk-research/table_reconstruction/HEAD/example/fil-result/tmp5f40b3ja/peak-memory.svg -------------------------------------------------------------------------------- /example/table.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sun-asterisk-research/table_reconstruction/HEAD/example/table.png -------------------------------------------------------------------------------- /pyproject.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sun-asterisk-research/table_reconstruction/HEAD/pyproject.toml -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sun-asterisk-research/table_reconstruction/HEAD/requirements.txt -------------------------------------------------------------------------------- /setup.cfg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sun-asterisk-research/table_reconstruction/HEAD/setup.cfg -------------------------------------------------------------------------------- /setup.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sun-asterisk-research/table_reconstruction/HEAD/setup.py -------------------------------------------------------------------------------- /table_reconstruction/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sun-asterisk-research/table_reconstruction/HEAD/table_reconstruction/__init__.py -------------------------------------------------------------------------------- /table_reconstruction/line_segmentation/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /table_reconstruction/line_segmentation/line_segment.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sun-asterisk-research/table_reconstruction/HEAD/table_reconstruction/line_segmentation/line_segment.py -------------------------------------------------------------------------------- /table_reconstruction/line_segmentation/unet/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /table_reconstruction/line_segmentation/unet/resunet.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sun-asterisk-research/table_reconstruction/HEAD/table_reconstruction/line_segmentation/unet/resunet.py -------------------------------------------------------------------------------- /table_reconstruction/line_segmentation/unet/unet_parts.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sun-asterisk-research/table_reconstruction/HEAD/table_reconstruction/line_segmentation/unet/unet_parts.py -------------------------------------------------------------------------------- /table_reconstruction/line_segmentation/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sun-asterisk-research/table_reconstruction/HEAD/table_reconstruction/line_segmentation/utils.py -------------------------------------------------------------------------------- /table_reconstruction/output/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /table_reconstruction/output/cell.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sun-asterisk-research/table_reconstruction/HEAD/table_reconstruction/output/cell.py -------------------------------------------------------------------------------- /table_reconstruction/output/element.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sun-asterisk-research/table_reconstruction/HEAD/table_reconstruction/output/element.py -------------------------------------------------------------------------------- /table_reconstruction/output/table.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sun-asterisk-research/table_reconstruction/HEAD/table_reconstruction/output/table.py -------------------------------------------------------------------------------- /table_reconstruction/table_detection/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /table_reconstruction/table_detection/detector.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sun-asterisk-research/table_reconstruction/HEAD/table_reconstruction/table_detection/detector.py -------------------------------------------------------------------------------- /table_reconstruction/table_detection/preprocess.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sun-asterisk-research/table_reconstruction/HEAD/table_reconstruction/table_detection/preprocess.py -------------------------------------------------------------------------------- /table_reconstruction/table_detection/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sun-asterisk-research/table_reconstruction/HEAD/table_reconstruction/table_detection/utils.py -------------------------------------------------------------------------------- /table_reconstruction/table_detection/yolov5/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sun-asterisk-research/table_reconstruction/HEAD/table_reconstruction/table_detection/yolov5/__init__.py -------------------------------------------------------------------------------- /table_reconstruction/table_detection/yolov5/hubconf.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sun-asterisk-research/table_reconstruction/HEAD/table_reconstruction/table_detection/yolov5/hubconf.py -------------------------------------------------------------------------------- /table_reconstruction/table_detection/yolov5/models/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /table_reconstruction/table_detection/yolov5/models/common.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sun-asterisk-research/table_reconstruction/HEAD/table_reconstruction/table_detection/yolov5/models/common.py -------------------------------------------------------------------------------- /table_reconstruction/table_detection/yolov5/models/experimental.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sun-asterisk-research/table_reconstruction/HEAD/table_reconstruction/table_detection/yolov5/models/experimental.py -------------------------------------------------------------------------------- /table_reconstruction/table_detection/yolov5/models/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sun-asterisk-research/table_reconstruction/HEAD/table_reconstruction/table_detection/yolov5/models/utils.py -------------------------------------------------------------------------------- /table_reconstruction/table_detection/yolov5/models/yolo.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sun-asterisk-research/table_reconstruction/HEAD/table_reconstruction/table_detection/yolov5/models/yolo.py -------------------------------------------------------------------------------- /table_reconstruction/utils/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /table_reconstruction/utils/cell_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sun-asterisk-research/table_reconstruction/HEAD/table_reconstruction/utils/cell_utils.py -------------------------------------------------------------------------------- /table_reconstruction/utils/lines_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sun-asterisk-research/table_reconstruction/HEAD/table_reconstruction/utils/lines_utils.py -------------------------------------------------------------------------------- /table_reconstruction/utils/mask_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sun-asterisk-research/table_reconstruction/HEAD/table_reconstruction/utils/mask_utils.py -------------------------------------------------------------------------------- /table_reconstruction/utils/table_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sun-asterisk-research/table_reconstruction/HEAD/table_reconstruction/utils/table_utils.py -------------------------------------------------------------------------------- /tests/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/tableImg.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sun-asterisk-research/table_reconstruction/HEAD/tests/tableImg.jpg -------------------------------------------------------------------------------- /tests/test_line_segment.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sun-asterisk-research/table_reconstruction/HEAD/tests/test_line_segment.py -------------------------------------------------------------------------------- /tests/test_package.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sun-asterisk-research/table_reconstruction/HEAD/tests/test_package.py -------------------------------------------------------------------------------- /tests/test_table_detection.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sun-asterisk-research/table_reconstruction/HEAD/tests/test_table_detection.py -------------------------------------------------------------------------------- /tox.ini: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sun-asterisk-research/table_reconstruction/HEAD/tox.ini --------------------------------------------------------------------------------