Table Image Synthesis
Project description
Table Synthesis Library
Introduction
This is the Table Image Synthesis tool that can generate a number of template table images given a template, with a goal of providing similar images to fine-tune the table recognition model. This is done by keeping the table structure and changing the text inside it.
Usage
First, depending on the browser you use, get the corresponding driver executable with the browser (chromedriver.exe for Chrome or geckodriver.exe for Firefox) from the Internet. Then put the driver file in the same directory as your main file.
The full model usage can be found here:
from table_synthesis import SynthesizeTable
syn = SynthesizeTable(input_path='test',
out_path='test_out')
syn(num_synth=1)
Here, the input_path is the path to the folder with the gt.txt file (which is a label file exported from PPOCRLabel program), and optionally the extra html files in the html/ folder if using TableGeneration tool.
The out_path should be the folder containing the output (recommended empty).
Then initilalize the Synthesis class and run it to generate num_synth images from each label image.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file table_synthesis-1.0.0-py3-none-any.whl.
File metadata
- Download URL: table_synthesis-1.0.0-py3-none-any.whl
- Upload date:
- Size: 14.0 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6626ca0894110a90aae59ddecb6bc1e454532f93a7412383c8a71ae4ff0fd7b1
|
|
| MD5 |
ac9e377cb196c34ad2ed7a2c03be7521
|
|
| BLAKE2b-256 |
83f68c0e69cf3b6a0e34612bc45b13b37b391b4b71ea1c1d86f9e2d8a04e97b1
|