Build Python Optical Character Recognition (OCR) applications having greater accuracy on Windows x64 using Aspose.OCR for Python via .NET 24.5.0 release. This update brings support for more languages, along with the detection of problematic image areas.
Sharpened Accuracy
Witness noticeable improvements in OCR accuracy for languages based on the Latin alphabet, including English, French, Spanish, and more in the latest Python OCR API release.
Expanded Language Support
You can now recognize text in Arabic, Persian (Farsi), Urdu, and Uyghur languages with new language codes feature seamlessly on 64-bit Windows machines. The following code sample demonstrates how to recognize the newly supported languages in Python. Here is how you can recognize Arabic text 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*
Identify Image Issues
Apply automatic defect detection functionality to identify problems like low contrast or glare that might hinder OCR accuracy. Here is how to implement this functionality into your Python applications. 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.