Skip to main content

Aspose.OCR for Python is a powerful yet easy-to-use and cost-effective API for extracting text from scanned images, photos, screenshots, PDF documents, and other files.

Project description

Product Page | Documentation | Demos | Blog | API Reference | Search | Free Support | Temporary License

Try our Free Online Apps demonstrating some of the most popular Aspose.OCR functionality.

Aspose.OCR for Python via .NET is a powerful, while easy-to-use optical character recognition (OCR) engine for your Python applications and notebooks. In less than 10 lines of code, you can recognize text in 135 languages based on Latin, Cyrillic, and Asian scripts, returning results in the most popular document and data interchange formats. There is no need to learn complex mathematical models, build machine learning algorithms and train neural networks — our simple and robust API will do everything for you.

The library works equally well with all sources, from a high-quality scan to a quick photo on a smartphone. Whether the image is rotated, distorted or noisy — automatic pre- and post-processing filters provide the highest recognition accuracy in the shortest time.

Check out the Landing Pages of Aspose.OCR for Python via .NET for a more detailed description of the features and possibilities of the library.

Key features

  • Recognizes text in more then 130 languages based on Latin, Cyrillic and Asian scrips, including texts in mixed languages.
  • Accurately extracts texts regardless of the original image quality - work with rotated, distorted and noisy pictures and photos.
  • Supports most file formats you can get from a scanner or camera, as well as web links.
  • Automatically corrects spelling errors to further improve the results without manual intervention.
  • Reads multi-page documents, folders, and even ZIP archives in bulk and returns results in the most popular document and data exchange formats.

Get Started

Run pip install aspose-ocr-python-net to fetch the package. If you already have Aspose.OCR for Python via .NET and want to get the latest version, please run pip install --upgrade aspose-ocr-python-net.

To learn more about Aspose.OCR for Python via .NET and explore the basic requirements and features of the library, check out the following Aspose.OCR for Python via .NET Documentation pages for other use cases.

Code snippet

Aspose.OCR for Python via .NET is extremely easy to use, regardless of the application's scale and complexity. Let's try to create a very simple application that can extract text from images and output it to the console.

  1. Install the latest version of the aspose-ocr package using pip.
  2. Import aspose.ocr module into the application.
  3. Create an instance of AsposeOcr class.
  4. Create an instance of OcrInput class and add one or more images to it.
  5. Extract text from the image using Recognize method.
  6. Output the extracted text to the console.

Full code:

import aspose.ocr as ocr

# Initialize OCR engine
api = AsposeOcr()

# Initialize OCR input
input = OcrInput(InputType.SINGLE_IMAGE)
input.add("1.png")
input.add("2.jpg")

# Recognize images
result = api.recognize(input)

# Print result
print(result[0].recognition_text)
print(result[1].recognition_text)

Product Page | Documentation | Demos | Blog | API Reference | Search | Free Support | Temporary License

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

aspose_ocr_python_net-24.11.0-py3-none-win_amd64.whl (123.1 MB view details)

Uploaded Python 3 Windows x86-64

aspose_ocr_python_net-24.11.0-py3-none-win32.whl (118.8 MB view details)

Uploaded Python 3 Windows x86

aspose_ocr_python_net-24.11.0-py3-none-macosx_11_0_arm64.whl (127.0 MB view details)

Uploaded Python 3 macOS 11.0+ ARM64

aspose_ocr_python_net-24.11.0-py3-none-macosx_10_14_x86_64.whl (132.4 MB view details)

Uploaded Python 3 macOS 10.14+ x86-64

File details

Details for the file aspose_ocr_python_net-24.11.0-py3-none-win_amd64.whl.

File metadata

File hashes

Hashes for aspose_ocr_python_net-24.11.0-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 aa32a3fdb9b82481c5ce2a3f0465a7171a0b3f05569ab3c7e56c8b66bc3bfad5
MD5 2dc8456b6c362d90b7f5ee198af596a8
BLAKE2b-256 40e70f5cc2aed23bcc8a8fff28633fc5477a2f04150538ff5179b6e63b3f2aba

See more details on using hashes here.

File details

Details for the file aspose_ocr_python_net-24.11.0-py3-none-win32.whl.

File metadata

File hashes

Hashes for aspose_ocr_python_net-24.11.0-py3-none-win32.whl
Algorithm Hash digest
SHA256 b30f756f87895f269f24706ef3183a4d0ee76185f0980f0ee5b7b64ff28e9cfa
MD5 52c3ac770aa552c58986d08ad1d8cb64
BLAKE2b-256 17176344855f47d9ffd390cfad746eb9c3234e388ac269e7f3d66a4f979e5d2c

See more details on using hashes here.

File details

Details for the file aspose_ocr_python_net-24.11.0-py3-none-manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for aspose_ocr_python_net-24.11.0-py3-none-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 2315839669ba92fb192c74bb49599748f89bd24f934cbba76cc8bcc3ade86688
MD5 16ff5ed2fcdcb910216ba8984996837b
BLAKE2b-256 f2789618ec8f379a7195b43697ac59a946864be56e7d64cbdeeac34c70df5bf9

See more details on using hashes here.

File details

Details for the file aspose_ocr_python_net-24.11.0-py3-none-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for aspose_ocr_python_net-24.11.0-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d12b7d9c2192840f04ed9ff72c60c78fa9e0a35359c080fb446691a2951181c3
MD5 3258242dca0193456653474521f59180
BLAKE2b-256 4e97e8f7ac7d9bf2e266b75579dcefb2d2f6a5146b633c2d4dcc0bcf1525edbd

See more details on using hashes here.

File details

Details for the file aspose_ocr_python_net-24.11.0-py3-none-macosx_10_14_x86_64.whl.

File metadata

File hashes

Hashes for aspose_ocr_python_net-24.11.0-py3-none-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 03f5911f082dc7559f517e976d9cb36d4029eb66796dacfb0c72b566a89a9991
MD5 95724f32c426b58bf21808b701934a65
BLAKE2b-256 ce9991eb741f1c61238c1710cbe6010ad76a0e8373230019c9b77bde156ccf39

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