
Security News
Vite Releases Technical Preview of Rolldown-Vite, a Rust-Based Bundler
Vite releases Rolldown-Vite, a Rust-based bundler preview offering faster builds and lower memory usage as a drop-in replacement for Vite.
Unified interface to google vision, aws textract, azure, tesseract and other OCR tools
The Core objective of OcrPy is to let users OCR, Archive, Index and Search any documents with ease, with a simple and intuitive interface and a powerful Pipeline API.
ocrpy achieves this by wrapping around various OCR engines like Tesseract OCR, Aws Textract, Google Cloud Vision and Azure Computer Vision. It unifies the multitude of interfaces provided by a wide range of cloud tools & other open-source libraries and provides a simple, easy-to-use interface for the user.
ocrpy
is a Python-only package hosted on PyPI.
The recommended installation method is pip
pip install ocrpy
Ocrpy Provides various levels of abstraction for the user to perform OCR on various types of documents.
The recommended and the best way to use Ocrpy is to use it through it's pipelines
API as shown below.
The Pipeline API can be invoked in two ways. The first method is to define the config for running the pipeline as a yaml file and and then run the pipeline by loading it as follows:
from ocrpy import TextOcrPipeline
ocr_pipeline = TextOcrPipeline.from_config("ocrpy_config.yaml")
ocr_pipeline.process()
alternatively you can also run a pipeline by directly instantiating the pipeline class as follows:
from ocrpy import TextOcrPipeline
pipeline = TextOcrPipeline(source_dir='s3://document_bucket/',
destination_dir="gs://processed_document_bucket/outputs/",
parser_backend='aws-textract',
credentials_config={"AWS": "path/to/aws-credentials.env/file",
"GCP": "path/to/gcp-credentials.json/file"})
pipeline.process()
:memo: For a more detailed set of examples and tutorials on how you could use ocrpy for your usecase can be found at ocrpy documentation.
If you wish to cite this project, feel free to use this BibTeX reference:
@misc{ocrpy,
title={Ocrpy: OCR, Archive, Index and Search any documents with ease},
author={maxentlabs},
year={2022},
publisher = {GitHub},
howpublished = {\url{https://github.com/maxent-ai/ocrpy}}
}
ocrpy
is licensed under the MIT license.
The full license text can be also found in the source code repository.ocrpy
is written and maintained by Bharath G.S and Rita Anjana.FAQs
unified interface to google vision, aws textract, azure & tesseract OCR tools.
We found that ocrpy 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
Vite releases Rolldown-Vite, a Rust-based bundler preview offering faster builds and lower memory usage as a drop-in replacement for Vite.
Research
Security News
A malicious npm typosquat uses remote commands to silently delete entire project directories after a single mistyped install.
Research
Security News
Malicious PyPI package semantic-types steals Solana private keys via transitive dependency installs using monkey patching and blockchain exfiltration.