Aspose.OCR for .NET 21.10 - Release Notes

All Features

Key Summary Category
OCRNET-425 Ability to set letters/symbols enum in Recognition settings Enhancement
OCRNET-422 Investigate contrast correction algorythm in OCR-cloud code Enhancement
OCRNET-420 Implement median blur filter. Enhancement
OCRNET-419 Implement adaptive median thresholding. Enhancement
OCRNET-421 Implement MorphologyEx: advanced morphological transformations. Enhancement


  • added ability to set contrast correction preprocessing filter before recognition
  • extended preprocessing filters with median and contrast correction filters
  • added ability to set only digits or latin letters recognition

Public API and Backwards Incompatible Changes


  • added new filters in the PreprocessingFilters: Median, ContrastCorrectionFilter
  • added new property in the RecognitionSettings class: - AutoContrast - AllowedCharacters
  • added enum CharactersAllowedType

Removed APIs

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 

            // Get image file for recognize
            string image = "img.png";

            // set filters as you need
            PreprocessingFilter filters = new PreprocessingFilter
            // use filters as settings in recognition process
            var res = api.RecognizeImage(image, new RecognitionSettings { PreprocessingFilters = filters });
			// Set allowed characters (only digits)
			 var res2 = api.RecognizeImage(imgPath, new RecognitionSettings
                AllowedCharacters = CharactersAllowedType.DIGITS // ALL, LATIN_ALPHABET