Skip to main content

Aspose.OCR for Python via Java

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 JAVA 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 JAVA for a more detailed description of the features and possibilities of the library.

Key features

  • Recognizes text in 28 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-java to fetch the package. If you already have Aspose.OCR for Python via JAVA and want to get the latest version, please run pip install --upgrade aspose-ocr-python-java.

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

Code snippet

Aspose.OCR for Python via JAVA 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 and install Jpype1.
  2. Import aspose 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 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
settings = ocr.RecognitionSettings()
settings.set_detect_areas_mode(ocr.DetectAreasMode.PHOTO)
result = api.recognize(input, settings)

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

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

Release files for aspose-ocr-python-java 25.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for aspose-ocr-python-java 25.2.0
File Interpreter ABI Platform
aspose_ocr_python_java-25.2.0-py3-none-any.whl Python 3 none any Details

Release files / aspose_ocr_python_java-25.2.0-py3-none-any.whl

Download URL aspose_ocr_python_java-25.2.0-py3-none-any.whl
Size 191.7 MB
Tags Python 3
SHA-256 checksum
How to use checksums
4b8b057a458042b2e850a6ac7d01d236e099e54b4782587022b0e48b8b0a08c1
BLAKE2b-256 checksum
How to use checksums
28070c38baf585e307f854846b6e48377271ca30b94741b61ec0629fcfdccc13
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.9

Release history Release notifications | RSS feed

This release

25.2.0 This release

1 release file

24.7.0

1 release file

24.3.0

1 release file

24.2.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page