Giter VIP home page Giter VIP logo

baskar-forever / tableextractor-advanced-pdf-table-extraction Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 17 KB

PDF Table Extractor is an innovative Python project designed to tackle the challenge of extracting tables from scanned PDF documents. Leveraging advanced optical character recognition (OCR) and image processing techniques.

License: MIT License

Jupyter Notebook 58.59% Python 41.41%
ocr-python table-extraction table-structure-recognition scanedpdf-extraction table-extraction-python

tableextractor-advanced-pdf-table-extraction's Introduction

TableExtractor-Advanced-PDF-Table-Extraction

Python Version license

Transform your scaned PDFs into actionable data with our advanced PDF Table Extractor. Utilizing state-of-the-art OCR and AI techniques, this Python tool effortlessly converts PDF documents into editable text formats, identifies and extracts tables, and integrates with Hugging Face Hub for further text processing.

Table of Contents

Features

  • PDF to Image Conversion: Transforms PDF pages into images, preparing them for table detection and extraction.
  • Advanced Table Detection: Employs morphological transformations to detect tables within images.
  • OCR Text Extraction: Leverages OCR technology to extract text from tables accurately.
  • AI-Powered Text Processing: Cleans and formats extracted text, using AI models from Hugging Face Hub.
  • Structured Data Output: Aggregates extracted data into a structured and usable format.

Prerequisites

Ensure you have the following prerequisites installed on your machine:

  • Python 3.6 or later
  • OpenCV (cv2) for image processing
  • NumPy for array manipulation
  • PyTesseract for OCR capabilities
  • pdf2image for converting PDF pages into images
  • PIL (Python Imaging Library) for image operations
  • Hugging Face Transformers for AI model integration

Installation

  1. Python Packages:

    pip install opencv-python numpy pytesseract pdf2image Pillow transformers
  2. System Dependencies: (For Debian/Ubuntu)

    sudo apt-get install poppler-utils
    sudo apt-get install tesseract-ocr
    

Usage

Basic Usage

To start extracting tables from your PDF document, instantiate the TableExtractor and provide the path to your document:

from table_extractor import TableExtractor

pdf_path = "path/to/your/document.pdf"
extractor = TableExtractor(pdf_path)

Contributing

๐ŸŒŸ We love your input! We want to make contributing to this project as easy and transparent as possible, whether it's:

  • Reporting a bug ๐Ÿ›
  • Discussing the current state of the code ๐Ÿ—ฃ
  • Submitting a fix ๐Ÿ”จ
  • Proposing new features โœจ
  • Becoming a maintainer ๐Ÿš€

When contributing to this repository, please first discuss the change you wish to make via issue, email, or any other method with the owners of this repository before making a change.

Please note we have a code of conduct; please follow it in all your interactions with the project.

Pull Request Process

  1. Ensure any install or build dependencies are removed before the end of the layer when doing a build.
  2. Update the README.md with details of changes to the interface, including new environment variables, exposed ports, useful file locations, and container parameters.
  3. Increase the version numbers in any examples files and the README.md to the new version that this Pull Request would represent. The versioning scheme we use is SemVer.
  4. You may merge the Pull Request in once you have the sign-off of two other developers, or if you do not have permission to do that, you may request the second reviewer to merge it for you.

License

This project is licensed under the MIT License - see the LICENSE file for details.

tableextractor-advanced-pdf-table-extraction's People

Contributors

baskar-forever avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.