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 28 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 27 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

If you're not sure about the file name format, learn more about wheel file names.

aspose_ocr_python_net-23.8.1-py3-none-win_amd64.whl (278.7 MB view details)

Uploaded Python 3Windows x86-64

aspose_ocr_python_net-23.8.1-py3-none-win32.whl (274.5 MB view details)

Uploaded Python 3Windows x86

aspose_ocr_python_net-23.8.1-py3-none-macosx_10_14_x86_64.whl (286.1 MB view details)

Uploaded Python 3macOS 10.14+ x86-64

File details

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

File metadata

File hashes

Hashes for aspose_ocr_python_net-23.8.1-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 5c31f0d7db30842df2187be1412e38e964e155309fec0ae5046644abf48e41e3
MD5 d9fb4f112698bf353fa863f20c1293a2
BLAKE2b-256 074e6b5d1150c0c41115c0867d7d76dbe362121463192c58ccb537a9db442eed

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for aspose_ocr_python_net-23.8.1-py3-none-win32.whl
Algorithm Hash digest
SHA256 47e1e2e039bfe3dbd5731a33db70ff235b68dc2e9e1fa5472fa94a0ea8b29d3e
MD5 a377eef4837c8b935456a9c00c0c43f9
BLAKE2b-256 699f4cd6d3580f5bc0538cd79f6e5e878325626ae7c06292d19b3da02fea062d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for aspose_ocr_python_net-23.8.1-py3-none-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 3e2d527b732f5a55d190d7882113de6916a2486e4c82491f2eb13cb66c2d502d
MD5 5a3a8df5da6dd5cf2875228c71bd17f6
BLAKE2b-256 ece44c161b0636047853400bed1e374977643f3bca7528b86c3d7e5e03db229e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for aspose_ocr_python_net-23.8.1-py3-none-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 737806e369a519e8ef408a3ede074fa085a984d58c7fc05f0d4f353f1ea7be8d
MD5 60d2248319f61fb92329618cca924671
BLAKE2b-256 4e709d2d137ef7d3bf640a4f41b243011ca0db779b627d0997e77dc3a6877488

See more details on using hashes here.

Supported by

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