Skip to main content

Asprise OCR (optical character recognition) and barcode recognition SDK is a high performance royalty-free Python API library. It converts images (JPEG, PNG, TIFF, PDF, etc) into text, xml, searchable PDF or editable RTF/Word formats. Data capture are supported for processing documents like invoices and forms.

Project description

Latest version Number of PyPI downloads

Install and Run the Sample OCR Application

You may install with Python’s pip either from a Unix/Linux shell or Windows command console:

> pip install asprise_ocr_sdk_python_api       # Windows

$ sudo pip install asprise_ocr_sdk_python_api  # Linux/Mac OS X

A sample front-end GUI for the OCR engine will be installed as a script named ‘asprise_ocr’. You can run the following command in the same shell/console:

asprise_ocr

The following are the screenshots on Linux and Windows respectively:

Asprise OCR for Python on Linux Asprise OCR for Python on Windows

Invoke Asprise OCR API from Your Own Code

from asprise_ocr_api import *

ocr = Ocr()
ocr.start_engine("eng")  # deu, fra, por, spa - more than 30 languages are supported
text = ocr.recognize(
    "PATH_TO_INPUT_IMAGE.tif",  # gif, jpg, pdf, png, tif, etc.
    OCR_PAGES_ALL,  # the index of the selected page
    -1, -1, -1, -1,  # you may optionally specify a region on the page instead of the whole page
    OCR_RECOGNIZE_TYPE_TEXT,  # recognize type: TEXT, BARCODES or ALL
    OCR_OUTPUT_FORMAT_PLAINTEXT  # output format: TEXT, XML, or PDF
)
print "Result: " + text

# ocr.recognize(more_images...)

ocr.stop_engine()

Asprise OCR Programming Guide

Developer’s Guide: http://asprise.com/royalty-free-library/python-ocr-barcode-reader-sdk-samples-docs.html

We’d Like to Hear From You

Asprise OCR supports more than twenty languages, however only five popular languages are included in this trial kit. Please contact us if you need to evaluate other languages.

Email: contact@asprise.com Homepage: Python OCR SDK API on asprise.com

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

asprise_ocr_sdk_python_api-15.3.0.8.zip (27.1 kB view details)

Uploaded Source

Built Distribution

asprise_ocr_sdk_python_api-15.3.0.8-py2.py3-none-any.whl (24.3 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file asprise_ocr_sdk_python_api-15.3.0.8.zip.

File metadata

File hashes

Hashes for asprise_ocr_sdk_python_api-15.3.0.8.zip
Algorithm Hash digest
SHA256 50eedd59a835f9484e150fb368e3b6496b9545e253251d9764b7d5a1da4d059b
MD5 00391334602157e7c89f327aded2a46e
BLAKE2b-256 f819496f386439a663dba6c34260ed255742f9b9ede8e5b1e7487fd4901fed39

See more details on using hashes here.

File details

Details for the file asprise_ocr_sdk_python_api-15.3.0.8-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for asprise_ocr_sdk_python_api-15.3.0.8-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 357cf543531deaf27341619b3c10f969ecc8e6f27884328eeb092807c77375d4
MD5 8c61fe4865ec8c80bb0ce1d9527c202b
BLAKE2b-256 5fb5abbf945d334c796cffc80daee4dce0c9b479205cebb2c02dcf8c0fb6b6df

See more details on using hashes here.

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