Browse our Products
Aspose.OCR for .NET 23.7.0 - Release Notes
This article contains a summary of recent changes, enhancements and bug fixes in Aspose.OCR for .NET 23.7.0 (July 2023) release.
GPU version: 23.5.0
Deprecation warning
The release 23.3.1 introduced a slimmer, faster and more straightforward API. All of your existing code will continue to work and you can even make minor updates to it, but be aware that all deprecated elements are scheduled to be removed in release 23.11.0 (November 2023) in favor of the new API.
Time to deprecation: 3 months left.
What was changed
Key | Summary | Category |
---|---|---|
OCRNET‑697 | Significantly improved the performance of geometric distortions removal (AutoDewarping method). | Enhancement |
OCRNET‑698 | Added automatic spelling correction to the SaveMultipageDocument method. | Enhancement |
Public API changes and backwards compatibility
This section lists all public API changes introduced in Aspose.OCR for .NET 23.7.0 that may affect the code of existing applications.
Added public APIs:
No changes
Updated public APIs:
The following public APIs have been introduced in Aspose.OCR for .NET 23.7.0 release:
Aspose.OCR.AsposeOcr.SaveMultipageDocument
method
New parameters have been added, which enable finding and automatically correcting spelling errors when saving recognition results to a multi-page document:
Parameter | Type | Description |
---|---|---|
applySpellingCorrection | bool | Set to true to activate automatic spelling correction. |
language | SpellCheckLanguage | Select the spellchecker language. |
dictionaryPath | string | Provide the path to the custom spelling dictionary. |
Removed public APIs:
No changes.
Examples
The examples below illustrates the changes introduced in this release:
Find and automatically correct spelling errors
Aspose.OCR.AsposeOcr recognitionEngine = new Aspose.OCR.AsposeOcr();
// Add images to OcrInput object
Aspose.OCR.OcrInput input = new Aspose.OCR.OcrInput(Aspose.OCR.InputType.SingleImage);
input.Add("page1.png");
input.Add("page2.png");
// Recognize images
List<Aspose.OCR.RecognitionResult> results = recognitionEngine.Recognize(input);
// Save results
AsposeOcr.SaveMultipageDocument("result.pdf", SaveFormat.PdfNoImg, result, true, Aspose.OCR.SpellChecker.SpellCheckLanguage.Eng);