Mac developers working on Python applications can leverage the advanced feature set of Aspose.OCR for Python via .NET 24.5.0 on macOS x64 and experience rich Optical Character Recognition (OCR) results. The latest update provides Arabic text recognition, automatic defect identification, and more.
Fine-tuned Accuracy of Latin Scripts
This version of the Python OCR API offers significant OCR accuracy enhancements for Latin-script languages, including English, French, Spanish, and more.
Easily Detect Arabic and Other Languages
Enjoy broad language support on macOS x64 and equip your OCR solutions with the capability to seamlessly recognize Arabic, Persian (Farsi), Urdu, and Uyghur language texts using the new 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*
Enriched Defect Detection
Aspose.OCR for Python via .NET v24.5.0 lets you identify issues like low contrast or blur in images with the new detect_defects
method. Such problems can hinder recognition accuracy, and with the newly added method, you can detect them easily. 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.