Browse our Products
Latest release
This article contains a summary of recent changes, enhancements and bug fixes in Aspose.OCR for .NET 26.3 (March 2026) release.
GPU version: 26.3.0
What was changed
| Key | Summary | Category |
|---|
OCRNET‑1199 | Performance and Memory Consumption issue: add EnableCpuMemArena and EnableMemoryPattern to configure ONNX Runtime. | Enhancement
Public API changes and backwards compatibility
This section lists all public API changes introduced in Aspose.OCR for .NET 26.3 that may affect the code of existing applications.
Added public APIs:
No changes.
Updated public APIs:
The following public APIs have been updated in this release:
Aspose.OCR.OnnxRuntimeSessionOptions
Compatibility: fully backward compatible. See details below.
Added property ‘EnableCpuMemArena’
Added property ‘EnableMemoryPattern’
Removed public APIs:
No changes.
Examples
The code samples below illustrate the changes introduced in this release:
OnnxRuntimeSessionOptions
// When enabled saves memory usage but increases execution time
Aspose.OCR.OnnxRuntimeSessionOptions.EnableCpuMemArena = true;
Aspose.OCR.OnnxRuntimeSessionOptions.EnableMemoryPattern = true;
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("source1.png");
input.Add("source2.jpg");
// Configure recognition settings if needed
Aspose.OCR.RecognitionSettings settings = new Aspose.OCR.RecognitionSettings();
// Recognize image
Aspose.OCR.OcrOutput results = recognitionEngine.Recognize(input, recognitionSettings);
foreach(Aspose.OCR.RecognitionResult result in results)
{
Console.WriteLine(result.RecognitionText);
}