Browse our Products
Aspose.OCR for Python via .NET 24.11.0 - Release Notes
Deprecation warning
- The release 24.3.0 updates the codes of some recognition languages to align with ISO 639-2 standard.
- Starting with the release 24.6.0, use
Country.NONE
recognition setting to disable extraction of key details from passport images instead ofCountry.UNIVERSAL
. - Starting with the release 24.10.0, Aspose.OCR for Python .NET introduces new content structure detection modes.
To make it easier to upgrade your code, we have kept all legacy values, but marked them as deprecated. All of your existing code will continue to work and you can even make minor updates to it, but be aware that all deprecated language codes are scheduled to be removed in release 25.1.0 (January 2025).
Time to deprecation: 2 months left.
What was changed
Key | Summary | Category |
---|---|---|
OCRPY‑75 | Added support for recognizing mixed-language Korean/English texts. | New feature |
OCRPY‑75 | Added support for recognizing mixed-language Japanese/English texts. | New feature |
OCRPY‑75 | Enhanced handling of custom fonts in searchable PDFs. | Enhancement |
OCRPY‑75 | Improved searchable PDF generation. | Enhancement |
OCRPY‑75 | Faster and more precise text extraction across various document types. | Enhancement |
Public API changes and backwards compatibility
This section lists all public API changes introduced in Aspose.OCR for Python via .NET 24.11.0 that may affect the code of existing applications.
Added public APIs:
No changes.
Updated public APIs:
The following public APIs have been changed in Aspose.OCR for Python via .NET 24.11.0 release:
Language
Aspose.OCR for Python via .NET can now recognize Japanese and Korean texts, including texts in mixed Japanese/English and Korean/English scripts:
Value | Alphabet |
---|---|
Language.JPN | Japanese |
Language.KOR | Korean |
Removed public APIs:
No changes.
Examples
The code samples below illustrate the changes introduced in this release:
Japanese language recognition
# Instantiate Aspose.OCR API
api = AsposeOcr()
# Add image to the recognition batch
input = OcrInput(InputType.SINGLE_IMAGE)
input.add("source.png")
# Recognize Japanese text
recognitionSettings = RecognitionSettings()
recognitionSettings.language = Language.JPN
# Extract text from image
result = api.recognize(input, recognitionSettings)
# Print recognition result
print(result[0].recognition_text)
input("Press Enter to continue...")