Aspose.OCR for .NET 20.9 - Release Notes

All Features

Key Summary Category
OCRNET-261 Add new recognition result format:JSON Enhancement
OCRNET-242 Extend API with method which gets the uri-link on image in parameters Enhancement


API method with the next opportunities:

  • send URI-link for recognition;
  • send recognition options as an object
  • get recognition result as an object with different properties

Public API and Backwards Incompatible Changes


Method Description
RecognitionResult RecognizeImageFromUri(string uri, RecognitionSettings settings) uri- link on the image, settings - object for parameters

Removed APIs

No Changes

Will be deprecated

string RecognizeImage(MemoryStream stream, Rectangle rect);

string RecognizeImage(string fullPath, Rectangle rect);

Usage Example

using System;
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 

            // Get image for recognize
            string uri = "";

            // Recognize image           
            RecognitionResult result = api.RecognizeImageFromUri(uri, new RecognitionSettings
                DetectAreas = true,
                RecognizeSingleLine = false,
                AutoSkew = true,
                RecognitionAreas = new List<Rectangle>()
                    new Rectangle(1,3,400,70),
                    new Rectangle(1,72,400,70)

            // Print result
           Console.WriteLine($"Text:\n {result.RecognitionText}");
           result.RecognitionAreasText.ForEach(a => Console.WriteLine($"{a}"));
           result.Warnings.ForEach(w => Console.WriteLine($"{w}"));
           Console.WriteLine($"JSON: {result.GetJson()}");