Aspose.OCR for .NET 22.1 - Release Notes

All Features

Key Summary Category
OCRNET-456 Add multipage TIFF input support Enhancement

Enhancements

  • added ability torecognize multi-page TIFF images

Public API and Backwards Incompatible Changes

New API

  • added method List RecognizeTiff(string fullPath, DocumentRecognitionSettings settings) to the AsposeOcr class

Removed APIs

All methods of the previous release are supported.

Will be deprecated

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.tiff";

            // Recognize image           
            DocumentRecognitionSettings set = new DocumentRecognitionSettings();
            //set.PagesNumber = 0;// set as you need
            List<RecognitionResult> result = api.RecognizeTiff(imgPath, set);

            // Print result
			foreach (var item in result)            
			{
                Console.WriteLine(item.RecognitionText);
            }
        }
    }
}