Browse our Products
Aspose.OCR for .NET 21.1 - Release Notes
This page contains release notes information for Aspose.OCR for .NET 21.1
GPU version: 21.1.0
All Features
Key | Summary | Category |
---|---|---|
OCRNET-314 | Optimize memory usage | Enhancement |
OCRNET-315 | Increase recognition quality | Enhancement |
OCRNET-316 | Implement Markdown and Searchable PDF results formats for download | Enhancement |
Enhancements
- added ability to save the recognition result in the Markdown and Searchable PDF Document format
- added custom image quality correction with parameter ThresholdValue
- improved performance and reduced memory costs
Public API and Backwards Incompatible Changes
New API
- added property TresholdValue to the RecognitionSettings class
Removed APIs
All methods of the previous release are supported.
Will be deprecated
string RecognizeImage(MemoryStream stream, Rectangle rect);
string RecognizeImage(string fullPath, Rectangle rect);
Usage Example
using Aspose.OCR;
namespace ProgramOCR
{
class Program
{
static void Main(string[] args)
{
// Get API
AsposeOcr api = new AsposeOcr();
// Create license
License lic = new License();
// Set license
lic.SetLicense("Aspose.Total.lic");
// Get image for recognize
string image = "D://img.png";
// Recognize image
RecognitionResult result = api.RecognizeImage(image, new RecognitionSettings
{
ThresholdValue = 160
});
// Save result
Console.WriteLine(result.RecognitionText);
result.Save("D://test.pdf", SaveFormat.Pdf);
result.Save("D://test.md", SaveFormat.Md);
}
}
}