Good news for Linux developers! We have released Aspose.OCR for Python via .NET 24.5.0, and it provides important features, including Arabic text recognition, automatic defect detection, and accurate Latin character OCR for your Linux applications.
Latin Script Recognition
The Python OCR API now boasts empowered OCR accuracy for languages based on the Latin alphabet, such as English, French, Spanish, and more.
Broader Language Support on Linux
Equip your OCR applications running on Linux with seamless recognition of Arabic, Persian (Farsi), Urdu, and Uyghur language texts using the newly added language codes feature. 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*
Automatically Identify Defects
With Aspose.OCR for Python via .NET v24.5.0, you can detect issues like low contrast or blur in source images using the new detect_defects
method. These issues may hinder recognition accuracy, and with the new addition, you can detect them smoothly. 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.