Skip to content

OpenCV python script to extract table from an image and store it in CSV file

Notifications You must be signed in to change notification settings

ranjeetds/OpenCV-python-extract-table-from-image

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

OpenCV-python-extract-table-from-image

extract_data.py will extract table from any image and store it in csv format

Example

  • Input image

alt text

  • Output
0 1 2 3 4 5
0 0 0 0 0 0 0
1 1 0 1 0 0 1
2 0 1 0 0 1 0
3 1 0 1 0 1 0
4 0 0 1 0 0 0

Requirements

  • Please run pip install -r requirements.txt

Note

  • This script might not work out of the box for all the images, hence you might neet to edit script and tune parameters to get optimal solutions for your images

How to run this script?

  • python3.x extract_data.py
  • It will ask you to enter image name (Provide image name with path)

About

OpenCV python script to extract table from an image and store it in CSV file

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages