OhMyTable
Install
pip install ohmytable
Quick Start
Use as a package
from ohmytable import OhMyTable
image_path = "/path/to/your_image_contains_table"
ohmytable = OhMyTable(device="cpu") # cpu/mps/cuda
htmls = ohmytable(image_path)
# The entire pipeline outputs table structure represented in HTML.
print(htmls)
# Visualize and save the results of all models in the pipeline.
from ohmytable.callback import VisualizeCallback
ohmytable(image_path, callbacks=[VisualizeCallback(image_path, "./tmp")])
Start a gradio web demo:
git clone https://github.com/Sanster/OhMyTable.git
cd OhMyTable
pip install gradio typer
python3 gradio_demo.py
Limitation
- Table Structure Recognition model is trained with max output length 1024(about 150 table cell boxes.)
- The model effect will be better with less padding around the table image.
Acknowledgement
Metadata
Release files for ohmytable 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ohmytable-0.1.0.tar.gz | 45.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ohmytable-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 104.6 kB
Release files / ohmytable-0.1.0.tar.gz
| Download URL | ohmytable-0.1.0.tar.gz |
|---|---|
| Size | 45.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8eb15eae5c2d3f867a2e6571fd4dfc3ad4123e2caebd4e89179e91341935e579
|
|
BLAKE2b-256 checksum How to use checksums |
38aad8273e91d5ce16043edd62933a07e0fc9165da4f86014c74a8ba9a896635
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.8.10
|
Release files / ohmytable-0.1.0-py3-none-any.whl
| Download URL | ohmytable-0.1.0-py3-none-any.whl |
|---|---|
| Size | 59.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cbe3d65566964cef954fae39aec2338b5b3aa3265b88b57b6696515f21fcc252
|
|
BLAKE2b-256 checksum How to use checksums |
4c5e7412300f6899220b68985f020fc1876bbb6b712ef69eaf420e05ba5c49f4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.8.10
|