Skip to main content

unified interface to google vision, aws textract, azure, tesseract OCR, EasyOCR tools.

Project description

ocrpy

Downloads

unified interface to google vision, aws textract, azure and tesseract OCR tools.

Sample Usage

from ocrpy import TextPipeline

SOURCE_DIR = 'source-dir-to-read-data'
DESTINATION_DIR = 'destination-path-to-write'

#optional: if using aws or gcp for ocr - pass the env file
#env-file need to contain `region_name`, `aws_access_key_id` and `aws_secret_access_key` vars
AWS_ENV_FILE = 'path-to-aws-credentials-env-file'
CREDENTIALS = {'aws': AWS_ENV_FILE}
PARSER_TYPE = 'aws'

ocr_pipe = TextPipeline(SOURCE_DIR, DESTINATION_DIR, PARSER_TYPE, CREDENTIALS) 
ocr_pipe.process_data()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ocrpy-0.3.4.tar.gz (826.4 kB view hashes)

Uploaded Source

Built Distribution

ocrpy-0.3.4-py3-none-any.whl (16.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page