[go: nahoru, domu]

Skip to content

ericcong/img2csv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

img2csv

Turns a set of table images to one CSV, powered by Tesseract.

Crazy CPU hog because of parallelization.

Installation

  1. Install the Python dependencies: pip install -r requirements.txt

  2. Install Tesseract as per https://github.com/tesseract-ocr/tesseract/wiki

Usage

  1. Put images to page.d, with ordered filenames.

  2. If necessary, do pre-processings on the images to make them contain only tables.

  3. Start the conversion: ./run.sh

  4. The CSV will be stored in result.csv

Mechanism

  1. Chops table into cells.

  2. OCRs the cells with Tesseract.

  3. Puts the OCRed cell texts together in their original positions, and generates the CSV.

About

Turns table images to CSV.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published