Browse our Products

Aspose.OCR for .NET 21.1 - Release Notes

All Features

KeySummaryCategory
OCRNET-314Optimize memory usageEnhancement
OCRNET-315Increase recognition qualityEnhancement
OCRNET-316Implement Markdown and Searchable PDF results formats for downloadEnhancement

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);
        }
    }
}