Browse our Products

Aspose.OCR for Python via .NET 23.5.0 - Release Notes

What was changed

KeySummaryCategory
OCRPY‑24Improved fast recognition method.Enhancement
OCRPY‑24Improved specialized recognition methods: recognize_receipt, recognize_invoice, recognize_id_card, recognize_passport, recognize_car_plate. See Updated public APIs for details.Enhancement

Public API changes and backwards compatibility

This section lists all public API changes introduced in Aspose.OCR for Python via .NET 23.5.0 that may affect the code of existing applications.

Added public APIs:

The following public APIs have been introduced in this release:

recognize_fast(images)

This method reads a single image in the fastest possible mode and returns a string with extracted text.

Updated public APIs:

The following public APIs have been introduced in this release:

recognize_receipt(input)

This method extracts text from scanned receipts using a specialized AI model.

recognize_receipt(input, settings)

This method extracts text from scanned receipts using a specialized AI model.

recognize_invoice(input)

This method extracts text from scanned or photographed invoices using a specialized AI model.

recognize_invoice(input, settings)

This method extracts text from scanned or photographed invoices using a specialized AI model.

recognize_id_card(input)

This method extracts text from scanned or photographed ID cards using a specialized AI model.

recognize_id_card(input, settings)

This method extracts text from scanned or photographed ID cards using a specialized AI model.

recognize_passport(input)

This method extracts text from scanned or photographed passports using a specialized AI model.

recognize_passport(input, settings)

This method extracts text from scanned or photographed passports using a specialized AI model.

recognize_car_plate(input)

This method extracts text from vehicle license plate image using a specialized AI model.

recognize_car_plate(input, settings)

This method extracts text from vehicle license plate image using a specialized AI model.

Removed public APIs:

No changes.

Examples

The examples below illustrates the changes introduced in this release:

Receipt recognition

api = AsposeOcr()
input = OcrInput(InputType.SINGLE_IMAGE)
input.add("Images/receipt.jpg")
result = api.recognize_receipt(input)
print(result[0].recognition_text)