Security News
Introducing the Socket Python SDK
The initial version of the Socket Python SDK is now on PyPI, enabling developers to more easily interact with the Socket REST API in Python projects.
table-info-extractor
Advanced tools
Table Info Extractor is a Python package designed for extracting tables from images and PDFs using OCR (Optical Character Recognition). It supports automatic rotation detection, image preprocessing, and conversion of extracted tables into pandas DataFrames.
You can install Table Info Extractor via pip:
pip install table_info_extractor
from table_info_extractor import image_to_table_extract
# Example: Extract tables from an image
extracted_tables_from_image = image_to_table_extract("path_to_your_image.jpg", auto_rotation=True)
print(extracted_tables_from_image)
from table_info_extractor import pdf_to_table_extract
# Example: Extract tables from a PDF
extracted_tables_from_pdf = pdf_to_table_extract("path_to_your_pdf.pdf", page_number=1, auto_rotation=True)
print(extracted_tables_from_pdf)
image_to_table_extract(image_path, auto_rotation=False)
Extracts tables from an image file.
image_path
(str): Path to the input image file.auto_rotation
(bool): Whether to automatically correct image rotation.Returns:
pdf_to_table_extract(pdf_path, page_number, auto_rotation=False)
Extracts tables from a specific page of a PDF file.
pdf_path
(str): Path to the input PDF file.page_number
(int): Page number from which to extract tables (1-based index).auto_rotation
(bool): Whether to automatically correct image rotation.Returns:
Contributions are welcome! To contribute to Table Info Extractor, please follow these steps:
git checkout -b feature/my-feature
.git push origin feature/my-feature
.FAQs
A package for extracting tables from images and PDFs
We found that table-info-extractor demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The initial version of the Socket Python SDK is now on PyPI, enabling developers to more easily interact with the Socket REST API in Python projects.
Security News
Floating dependency ranges in npm can introduce instability and security risks into your project by allowing unverified or incompatible versions to be installed automatically, leading to unpredictable behavior and potential conflicts.
Security News
A new Rust RFC proposes "Trusted Publishing" for Crates.io, introducing short-lived access tokens via OIDC to improve security and reduce risks associated with long-lived API tokens.