Browse our Products

Aspose.OCR for .NET 22.7 - Release Notes

What was changed

KeySummaryCategory
n/aFixed incompatibility between Aspose.OCR and Aspose.OMR installers.Fix
OCRNET-551Added image noise reduction filter.New feature
OCRNET-551Added image skew correction filter.New feature

Public API changes and backwards compatibility

This section lists all public API changes introduced in Aspose.OCR for .NET 22.7 that may affect the code of existing applications.

Added public APIs:

The following public APIs have been introduced in this release:

PreprocessingFilter.AutoDenoising()

A new preprocessing filter that automatically removes dirt, spots, scratches, glare, unwanted gradients, and other noise from recognized images.

PreprocessingFilter.AutoSkew()

A new preprocessing filter that automatically straightens skewed images. This can greatly improve the recognition accuracy of smartphone photos and inaccurately scanned pages.

Updated public APIs:

No changes.

Removed public APIs:

No changes.

Usage examples

The examples below illustrates the changes introduced in this release:

Clean up a noisy image

using Aspose.OCR;

namespace ProgramOCR
{
    class Program
    {
        static void Main(string[] args)
        {
            // Create instance of OCR API
            AsposeOcr api = new AsposeOcr();
            // Add denoise preprocessing filter
            PreprocessingFilter filters = new PreprocessingFilter {
            	PreprocessingFilter.AutoDenoising()
            };
            // Preprocess an image
            MemoryStream ms = api.PreprocessImage("image.jpg", filters)
            // Save cleaned image into a file
            using(FileStream file = new FileStream("result.png", FileMode.Create, System.IO.FileAccess.Write))
            {
            	ms.WriteTo(file);
            }
        }
    }
}

Straighten skewed image

using Aspose.OCR;

namespace ProgramOCR
{
    class Program
    {
        static void Main(string[] args)
        {
            // Create instance of OCR API
            AsposeOcr api = new AsposeOcr();
            // Add deskew preprocessing filter
            PreprocessingFilter filters = new PreprocessingFilter {
            	PreprocessingFilter.AutoSkew()
            };
            // Preprocess an image
            MemoryStream ms = api.PreprocessImage("image.jpg", filters)
            // Save straightened image into a file
            using(FileStream file = new FileStream("result.png", FileMode.Create, System.IO.FileAccess.Write))
            {
            	ms.WriteTo(file);
            }
        }
    }
}