OCR utils
Python tools for interacting with Tesseract
Features
- Detects tables in PDF/images and performs OCR on each cell
- Performs OCR on PDF and generates SVG image
Quick Start
from ocr_utils import pdf_to_svg
pdf_to_svg(
input_filename='in.pdf',
output_filename='out.svg',
detect_tables=True,
lang='eng',
)
Execution example
Input pdf
Output svg
Installation
Stable Release: pip install tesseract_ocr_utils
Development Head: pip install git+https://github.com/envinorma/ocr_utils.git
This library is built upon pytesseract and pdf2image which have non-pip requirements. Visit these libraries installation pages to install dependencies.
For example, on ubuntu, the following libraries need to be installed:
apt-get install libarchive13
apt-get install tesseract-ocr
apt-get install poppler-utils
Documentation
For full package documentation please visit envinorma.github.io/ocr_utils.
Development
See CONTRIBUTING.md for information related to developing the code.
MIT license
Metadata
Release files for tesseract-ocr-utils 0.0.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| tesseract_ocr_utils-0.0.6.tar.gz | 560.3 kB | Without provenance | Details for tesseract_ocr_utils-0.0.6.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| tesseract_ocr_utils-0.0.6-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for tesseract_ocr_utils-0.0.6-py2.py3-none-any.whl |
Total release size: 572.3 kB
Release files / tesseract_ocr_utils-0.0.6.tar.gz
| Download URL | tesseract_ocr_utils-0.0.6.tar.gz |
|---|---|
| Size | 560.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7a27d67141496ca1875368c35639d163b90c35c033547bd464fe33efae9a5035
|
|
BLAKE2b-256 checksum How to use checksums |
41947b2ed55fdd63f76bdc07cbf83e7f673fc39a40fca384603a635d77c68418
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4
|
Release files / tesseract_ocr_utils-0.0.6-py2.py3-none-any.whl
| Download URL | tesseract_ocr_utils-0.0.6-py2.py3-none-any.whl |
|---|---|
| Size | 12.0 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
9d262db1ac307b8f98d4f8f4e0e430d3b38ee435087a45079121d8810143550a
|
|
BLAKE2b-256 checksum How to use checksums |
5d7a8c7e3768b5d08d0c44d726f07afb3d99b29102380b6c93f0d1dbf64509a5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4
|
Security for tesseract-ocr-utils 0.0.6
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.