Browse our Products

If so you can download any of the below versions for testing. The product will function as normal except for an evaluation limitation. At the time of purchase we provide a license file via email that will allow the product to work in its full capacity. If you would also like an evaluation license to test without any restrictions for 30 days, please follow the directions provided here.

 

Aspose.OCR for Python via Java 24.2.0

Download  Support Forum 

File Details

  • Downloads:
  • 1
  • File Size:
  • 95.68MB
  • Date Added:
  • 14/2/2024

Description

Aspose.OCR for Python via Java 24.2.0 release.

File Details

New Modular System for OCR Features

Developers can now distribute extra OCR features as downloadable modules using Aspose.OCR for Python via Java 24.2.0, and enjoy more control over the specific resources needed for a project.

Updated APIs

We have introduced various updates to methods for managing downloadable resources, such as setting repository URLs and manual downloads in the latest Python OCR library release.

Public API Changes

New API Members

  • Resources.set_repository(): Set the URL for downloading OCR resources.
  • Resources.get_repository(): Retrieve the current URL of the resource repository.
  • Resources.allow_automatic_downloads(): Enable or block automatic downloading of resources.
  • Resources.list_remote(): List all available resources in the remote repository.
  • Resources.set_local_path(): Specify a custom local path for resource storage.
  • Resources.get_local_path(): Retrieve the local directory path for downloaded resources.
  • Resources.list_local(): List all resources stored locally.
  • Resources.fetch_all(): Download all compatible resources from the repository.
  • Resources.fetch_resources(): Download selected resources from the repository.

Use Cases

Recognize Hindi Characters


import aspose as ocr

ocr_resources = []
ocr_resources.append('aspose-ocr-hindi-v1')
ocr.Resources.fetch_resources(ocr_resources)

api = ocr.AsposeOcr()
images = ocr.OcrInput(ocr.InputType.SINGLE_IMAGE)
images.add('source.png')

recognitionSettings = RecognitionSettings()
recognitionSettings.setLanguage(Language.HIN)

result = api.recognize(images, recognitionSettings)
print(result[0].recognition_text)

Source*

Utilize Manually Downloaded Resources


import aspose as ocr

# the directory must be present in the application working directory
ocr.Resources.set_local_path('aspose/ocr')
ocr.Resources.allow_automatic_downloads(false)

Source*

You can view the list of all new features, enhancements, and bug fixes introduced in this release by visiting Aspose.OCR for Python for Java 24.2.0 Release Notes.

 English