Browse our Products

Aspose.OCR for .NET 20.12 - Release Notes

All Features

KeySummaryCategory
OCRNET-280Implement the possibility to get result in .doc, .docx, .odt and .txt formatsEnhancement
OCRNET-290Increase performance by reducing image loading timeEnhancement

Enhancements

  • added ability to save the recognition result in the plain text, Microsoft Word, Office Open XML or ODF Text Document format
  • improving overall API performance by reducing image loading times

Public API and Backwards Incompatible Changes

New API

  • added method Save to the RecognitionResult object

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

            // Save result

            result.Save("D://test.docx", SaveFormat.Docx);
            result.Save("D://test.doc", SaveFormat.Doc);
            result.Save("D://test.odt", SaveFormat.Odt);
            result.Save("D://test.txt", SaveFormat.Text);
        }
    }
}