Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
TableCV is a Python package designed to extract tables from images. It offers two approaches for extracting tables, allowing you to choose the one that best suits your needs.
You can easily install TableCV using pip:
pip install tablecv
TableCV offers a straightforward method to extract tables using PaddleOCR. This approach returns a pandas DataFrame object:
from tablecv import extract_table
# Replace "image_path" with the path to your image
print(extract_table(image_path="your_image.png"))
If you prefer using a different OCR tool like EasyOCR, KerasOCR, or any other OCR solution, you can still use TableCV. First, perform OCR on your image using your chosen tool. The OCR results should be structured as a list of tuples, each containing a bounding box and corresponding text:
# List of tuples: (bounding box as (x, y, w, h), text)
ocr_results = [
((1, 2, 3, 4), "a"),
((4, 5, 6, 7), "b"),
# Add more tuples as needed
]
After obtaining your OCR results, you can extract tables from them using TableCV:
from tablecv import extract_table_from_ocr
# Replace "ocr_results" with your OCR results list
print(extract_table_from_ocr(ocr_results))
With these two approaches, TableCV provides flexibility for table extraction from images, whether you prefer using PaddleOCR or another OCR tool of your choice.
FAQs
Table extraction from image.
We found that tablecv 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.