Image Noise Reduction Filter
A new preprocessing filter has been added to the OCR API that automatically removes various types of image noise; such as, unwanted gradients, glare, scratches, dirty spots, dirt, etc.
The following C# code snippet shows the Auto Denoising method of API in action:
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);
}
}
}
}
Image Skew Correction Filter
Introduced the filter that corrects the image skew by straightening (deskew) the skewed images.
The following C# code sample demonstrates how you may increase the image recognition accuracy of photos taken from smartphone or inaccurate scans by using AutoSkew()
method in API:
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);
}
}
}
}
Better Compatibility with Aspose.OMR
Resolved the incompatibility issue between Aspose.OCR and Aspose.OMR installers.
For a complete list of features, enhancements, and bug fixes in this release please visit, Aspose.OCR for .NET 22.7 - Notas de lanzamiento.