Browse our Products

Aspose.OCR for .NET 20.4 - Release Notes

In this release, we are introducing a new recognition engine based on effective CPU calculations to increase the performance of text recognition. Machine Learning approaches allow using GPU to improve performance significantly,

Enhancements

  • Improved performance using CPU/GPU.
  • New text search approach tuned for complex layouts.

Supported Characters

space!"#$%&'()
*+,-./0123
456789:;<=
>?@[\]_`{|
}~ABCDEFGH
IJKLMNOPQR
STUVWXYZab
cdefghijkl
mnopqrstuv
wxyzÂÀÁÃÄÆ
ÇÈÉÊËÌÍÎÏÑ
ÒÓÔÕÖÙÚÛÜ
ßàáâãäæçèé
êëìíîïñòóô
õöùúûüÿŒœŸ

Public API and Backwards Incompatible Changes

New API

MethodDescription
string RecognizeImage(string fullPath)fullPath - path to the image. The possible format is png, jpg, gif, bmp.
string RecognizeLine(string fullPath)fullPath - path to image line. The possible format is png, jpg, gif, bmp.
void SetLicense(string licenseName)licenseName - path to XML license file.

Removed APIs

All methods of the previous release are not supported.

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 

            lic.SetLicense("Aspose.Total.lic");

            // Get image for recognize

            string imgPath = "test_ocr.png";

            // Recognize image

            string result = api.RecognizeImage(imgPath);

            // Print result

            Console.WriteLine(result);

            // Dispose

            api.Dispose();

        }

    }

}