Browse our Products
Aspose.OCR for .NET 24.9.0 - Release Notes
This article contains a summary of recent changes, enhancements and bug fixes in Aspose.OCR for .NET 24.9.0 (September 2024) release.
GPU version: 23.10.1
Deprecation warning
- The release 24.3.0 updates the codes of some recognition languages to align with ISO 639-2 standard.
- Starting with the release 24.9.0, use
Aspose.OCR.Country.NONE
recognition setting to disable extraction of key details from passport images instead ofAspose.OCR.Country.UNIVERSAL
.
To make it easier to upgrade your code, we have kept all legacy values, but marked them as deprecated. All of your existing code will continue to work and you can even make minor updates to it, but be aware that all deprecated language codes are scheduled to be removed in release 25.1.0 (January 2025).
Time to deprecation: 6 months left.
What was changed
Key | Summary | Category |
---|---|---|
OCRNET‑918 | Added the ability to reduce PDF file size at the expense of lower background image quality. | New feature |
OCRNET‑913 OCRNET‑915 | Implemented next-get text-in-wild OCR model with improved recognition accuracy and multi-language support. | Enhancement |
OCRNET‑917 | Improved image orientation detection to prevent certain images to be incorrectly rotated upside-down. | Enhancement |
n/a | Refined content area detection algorithms for TABLE and PHOTO modes. | Enhancement |
Public API changes and backwards compatibility
This section lists all public API changes introduced in Aspose.OCR for .NET 24.9.0 that may affect the code of existing applications.
Added public APIs:
The following public APIs have been added to Aspose.OCR for .NET 24.5.0 release:
Aspose.OCR.PdfOptimizationMode
enumeration
The optimization mode specifies the balance between file size and image quality of saved PDFs.
Name | Value | Description |
---|---|---|
NONE | 0 | Do not optimize PDF size. |
MAXIMUM_QUALITY | 1 | Optimize file size while preserving the highest image quality. |
HIGH_QUALITY | 2 | Smaller PDF file size at the expense of sight image downsampling. |
BALANCED | 3 | Downsample images to balance file size and image quality. |
AGGRESSIVE | 4 | Significantly reduce the PDF file size at the expense of lower image quality. |
Updated public APIs:
No changes.
Removed public APIs:
No changes.
Examples
The code samples below illustrate the changes introduced in this release:
Optimize searchable PDF file size
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 image
List<Aspose.OCR.RecognitionResult> results = recognitionEngine.Recognize(input);
// Save results in optimized PDF
Aspose.OCR.AsposeOcr.SaveMultipageDocument("result.pdf", Aspose.OCR.SaveFormat.Pdf, results, null, Aspose.OCR.PdfOptimizationMode.BALANCED);