Browse our Products

Aspose.OCR for .NET 23.4.0 - Release Notes

Deprecation warning

What was changed

KeySummaryCategory
OCRNET‑661
OCRNET‑663
Added support for character-by-character recognition and character bounding box detection.New feature

Public API changes and backwards compatibility

This section lists all public API changes introduced in Aspose.OCR for .NET 23.4.0 that may affect the code of existing applications.

Added public APIs:

The following public APIs have been introduced in this release:

Aspose.OCR.AsposeOcr.RecognizeCharacters method

This method recognizes one or more files provided as an OcrInput object and returns each recognized character with its coordinates.

Aspose.OCR.CharacterRecognitionResult class

The collection of all characters detected by Aspose.OCR.AsposeOcr.RecognizeCharacters method and their bounding boxes.

Aspose.OCR.Character class

The recognized character and the coordinates of its bounding box.

Updated public APIs:

No changes.

Removed public APIs:

No changes.

Examples

The examples below illustrates the changes introduced in this release:

Character-by-character recognition

Aspose.OCR.AsposeOcr recognitionEngine = new Aspose.OCR.AsposeOcr();
// Add an image to the recognition batch
Aspose.OCR.OcrInput source = new Aspose.OCR.OcrInput(Aspose.OCR.InputType.SingleImage);
source.Add("image1.png");
// Detect and recognize characters
List<Aspose.OCR.CharacterRecognitionResult> result = recognitionEngine.RecognizeCharacters(source, Aspose.OCR.DetectAreasMode.COMBINE)
// Output recognized characters
foreach(Aspose.OCR.Character c in result[0].Characters)
{
	Console.WriteLine($@"Found character ""{c.Value}"" by coordinates: left - {c.Coordinates.X} | top - {c.Coordinates.Y} | width - {c.Coordinates.Width} | height - {c.Coordinates.Height}");
}