Browse our Products

Aspose.OCR for .NET 24.10.0 - Release Notes

Deprecation warning

What was changed

KeySummaryCategory
OCRNET‑927Added support for recognizing mixed-language Chinese/English texts.New feature
OCRNET‑927Significantly improved Chinese text recognition accuracy.Enhancement
OCRNET‑929Introduced simple and straightforward content structure detection modes.Enhancement
OCRNET‑930Improved compatibility with TIFF images.Enhancement

Public API changes and backwards compatibility

This section lists all public API changes introduced in Aspose.OCR for .NET 24.10.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.10.0 release:

Aspose.OCR.DetectAreasMode enumeration values

A scan or photograph of a text may contain a large number of blocks of various content - text paragraphs, tables, illustrations, formulas, and the like. Detecting, ordering, and classifying areas of interest on a page is the cornerstone of successful and accurate OCR.

Aspose.OCR for .NET 24.10.0 introduces simple and straightforward content structure detection modes:

NameDescriptionUse cases
Aspose.OCR.DetectAreasMode.UNIVERSALDetects all blocks of text in the image, including sparse and irregular text on street photos. Default content recognition mode.A versatile option for most images, except for tables and multi-column layouts.
Aspose.OCR.DetectAreasMode.MULTICOLUMNDetects large blocks of text formatted in columns.Multi-column layouts such as book pages, articles, or contracts.
Aspose.OCR.DetectAreasMode.LEANPrioritizes speed and reduces resource consumption by omitting support for complex layouts.Simple images with a few lines of text without illustrations or formatting.

Updated public APIs:

No changes.

Removed public APIs:

No changes.

Deprecated APIs

The following public APIs have been marked as deprecated and will be removed in 25.1.0 (January 2025) release:

Aspose.OCR.DetectAreasMode.NONE

Use Aspose.OCR.DetectAreasMode.LEAN for recognizing simple images with a few lines of text without illustrations or formatting, prioritizing speed and reducing resource consumption.

Aspose.OCR.DetectAreasMode.PHOTO

Use Aspose.OCR.DetectAreasMode.UNIVERSAL for photos and screenshots.

Aspose.OCR.DetectAreasMode.COMBINE

Use Aspose.OCR.DetectAreasMode.UNIVERSAL for most documents.

Aspose.OCR.DetectAreasMode.TEXT_IN_WILD

Use Aspose.OCR.DetectAreasMode.UNIVERSAL for street photos.

Aspose.OCR.DetectAreasMode.DOCUMENT

Use Aspose.OCR.DetectAreasMode.MULTICOLUMN for recognizing multi-column layouts.

Examples

The code samples below illustrate the changes introduced in this release:

Recognizing multi-column layout

Aspose.OCR.AsposeOcr recognitionEngine = new Aspose.OCR.AsposeOcr();
// Add an image to OcrInput object
Aspose.OCR.OcrInput input = new Aspose.OCR.OcrInput(Aspose.OCR.InputType.SingleImage);
input.Add("source.png");
// Set document areas detection mode
Aspose.OCR.RecognitionSettings recognitionSettings = new Aspose.OCR.RecognitionSettings();
recognitionSettings.DetectAreasMode = Aspose.OCR.DetectAreasMode.MULTICOLUMN;
// Recognize image
List<Aspose.OCR.RecognitionResult> results = recognitionEngine.Recognize(input, recognitionSettings);
foreach(Aspose.OCR.RecognitionResult result in results)
{
	Console.WriteLine(result.RecognitionText);
}