Browse our Products

Aspose.OCR for .NET 20.11 - Release Notes

All Features

OCRNET-246Add the language choose optionEnhancement


  • Added ability to recognize a batch of images (in zip archive or in a folder). Pass archive name or folder name as a parameter and get an array of results from each page)

Public API and Backwards Incompatible Changes


public RecognitionResult[] RecognizeMultipleImages(string path, RecognitionSettings settings)path - path to the zip archive (include extension) or path to the folder, settings - object for parameters

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 System;
using System.Collections.Generic;
using System.Drawing;
using System.IO;
using Aspose.OCR;
using Aspose.OCR.Models;

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 path = "D://FolderWithImgs";

            //  or  
            //string path = "D://";

            // Recognize image           
            RecognitionResult[] resultArray = api.RecognizeMultipleImages(path, new RecognitionSettings());

            // Print result

           foreach (var result in resultArray )
                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()}");           }