Browse our Products

Aspose.OCR for .NET 21.6 - Release Notes

All Features

KeySummaryCategory
OCRNET-359Import new models (DSR, Chinese OCR)Enhancement
OCRNET-360Add method CalcSkewImage(uri)Enhancement
OCRNET-41Support for Chinese Language - Aspose.OCR for .NETEnhancement
OCRNET-39Support for Chinese LanguageEnhancement

Enhancements

  • new ML model with improved regions recognition
  • added Chinese language support
  • added new Api method CalculateSkewFromUri(uri)

Public API and Backwards Incompatible Changes

New API

  • added method: double CalcSkewImageFromUri(String uri)

Removed APIs

Will be deprecated

Usage Example for Chinese text recognition and image angle calculation

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://chinese.png";

            // Recognize chinese text           
            RecognitionResult result = api.RecognizeImage(image, new RecognitionSettings{ Language = Language.Chi });

            // Save result		
            result.Save("D://test.txt", SaveFormat.Text);

			// Get the angle of the image from the URI
			float skew = api.CalculateSkewFromUri("https://blog.udemy.com/wp-content/uploads/2014/01/cssresult.png");
			Console.WriteLine($"Angle: {skew}");
        }
    }
}