Browse our Products
Aspose.OCR for Python via .NET 24.11.1 - 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‑76 | Added an experimental OCR model for extracting mixed-language Cyrillic/English texts. | New feature |
OCRPY‑76 | Added support for recognizing mixed-language Telugu/English texts. | New feature |
OCRPY‑76 | Added support for recognizing mixed-language Tamil/English texts. | New feature |
OCRPY‑76 | Added support for recognizing mixed-language Kannada/English texts. | New feature |
OCRPY‑76 | Added universal recognition of Indic texts based on Devanagari script, including mixed Devanagari/English texts. | Enhancement |
n/a | Added universal recognition of Chinese/English texts (language-agnostic). | Enhancement |
Public API changes and backwards compatibility
This section lists all public API changes introduced in Aspose.OCR for Python via .NET 24.11.1 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.1 release:
Language
Aspose.OCR for .NET can now extract texts in the following languages:
Value | Alphabet |
---|---|
Language.CHINESE | Universal model for all Chinese languages. Mixed-language Chinese/English texts also supported. |
Language.DEVANAGARI Language.Indic | Universal model for all Indic texts based on Devanagari script, including mixed Devanagari/English texts. |
Language.EUROPEAN | Mixed-language Cyrillic/English texts. |
Language.KAN | Mixed-language Kannada/English texts. |
Language.TAM | Mixed-language Tamil/English texts. |
Language.TEL | Mixed-language Telugu/English texts. |
- Chinese text recognition requires aspose-ocr-chinese-v2 OCR feature to be installed.
- Indic text recognition requires aspose-ocr-hindi-v2 OCR feature to be installed.
- Mixed-language Cyrillic/English text recognition requires aaspose-ocr-cyrillic-v2 OCR feature to be installed.
- Kannada text recognition requires aspose-ocr-kannada-v1 OCR feature to be installed.
- Tamil text recognition requires aspose-ocr-tamil-v1 OCR feature to be installed.
- Telugu text recognition requires aspose-ocr-telugu-v1 OCR feature to be installed.
Removed public APIs:
No changes.
Examples
The code samples below illustrate the changes introduced in this release:
Mixed-language Cyrillic/English OCR
# Instantiate Aspose.OCR API
api = AsposeOcr()
# Add image to the recognition batch
input = OcrInput(InputType.SINGLE_IMAGE)
input.add("source.png")
# Recognize mixed Cyrillic/English text
recognitionSettings = RecognitionSettings()
recognitionSettings.language = Language.EUROPEAN
# Extract text from image
result = api.recognize(input, recognitionSettings)
# Print recognition result
print(result[0].recognition_text)
input("Press Enter to continue...")