Upgrade your Python OCR applications running on Windows x32 with broader language support and identification of problematic image areas using Aspose.OCR for Python via .NET 24.5.0 release.
Enhanced Accuracy for Latin Scripts
You can witness significant improvements in OCR accuracy for Latin-based languages, such as English, French, Spanish, and more, in the latest release of the Python OCR API.
Enjoy Broader Language Support
Effortlessly recognize text in Arabic, Persian (Farsi), Urdu, and more languages using the new language codes feature on Win32-powered machines. The following code sample demonstrates recognizing the Arabic language in Python.
# Instantiate Aspose.OCR API
api = AsposeOcr()
# Add image to the recognition batch
input = OcrInput(InputType.SINGLE_IMAGE)
input.add("source.png")
# Enable Arabic text recognition
recognitionSettings = RecognitionSettings()
recognitionSettings.language = Language.ARA
# Recognize the image
result = api.recognize(input, recognitionSettings)
# Print recognition result
print(result[0].recognition_text)
input("Press Enter to continue...")
Source*
Automatic Defect Detection
Version 24.5.0 of the Python OCR library helps you identify issues like low contrast or blur in images that might impact recognition accuracy using the new detect_defects
method. This code example illustrates how to detect highlights and shadows in the source image.
# Instantiate Aspose.OCR API
api = AsposeOcr()
# Add image to the recognition batch
input = OcrInput(InputType.SINGLE_IMAGE)
input.add("source.png")
# Find shadows and highlights
defects = api.detect_defects(input, DefectType.LOW_CONTRAST)
print(det[0].source)
print(det[0].defect_areas[0].defect_type)
Source*
You can view the list of all new features, enhancements, and bug fixes introduced in this release by visiting Aspose.OCR for Python via .NET 24.5.0 Release Notes.