https://github.com/myatmyintzuthin/extract-table
Table Cell Coordinate Extraction From Image
https://github.com/myatmyintzuthin/extract-table
image-processing table-extraction
Last synced: over 1 year ago
JSON representation
Table Cell Coordinate Extraction From Image
- Host: GitHub
- URL: https://github.com/myatmyintzuthin/extract-table
- Owner: myatmyintzuthin
- License: apache-2.0
- Created: 2023-02-21T10:33:16.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-03-19T04:53:54.000Z (over 2 years ago)
- Last Synced: 2025-02-03T21:34:41.014Z (over 1 year ago)
- Topics: image-processing, table-extraction
- Language: Python
- Homepage:
- Size: 505 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Table Cell Extraction



This repository consists of a simple image processing script to extract coordinate of each cell in a table image. \
The script can extract tables irrespective of image size.
The result will be contour image and json output with position of each cell.
## Install Dependencies
```code
pip install -r requirements.txt
```
## Run Table Extraction
```code
python src/extractTable.py -i test_data/test_table1.png
```
## Cell Visualization
Original Image | Contour Image
:-------------------------:|:-------------------------:
 | 
 | 
## Cell Coordinate Result
```
{
"width": 161,
"height": 297,
"results": [
{
"x": 0,
"y": 0,
"width": 161,
"height": 297
},
{
"x": 10,
"y": 241,
"width": 141,
"height": 49
}
]
}
```
## Appendix
for C++ implementation, go to `C++` branch.