com.aspose.ocr.filters

Class BlurFilter



  • public class BlurFilter
    extends Filter

    Represent blur filtration.


     
     [C#]
     OcrEngine ocrEngine = new OcrEngine();
     // Add blur filtration
     ocrEngine.Config.CorrectionFilters.Add(new BlurFilter());
     

    • Constructor Summary

      Constructors 
      Constructor and Description
      BlurFilter(int size)
      Initializes a new instance of the BlurFilterOld class.
    • Constructor Detail

      • BlurFilter

        public BlurFilter(int size)

        Initializes a new instance of the BlurFilterOld class.

        Parameters:
        size - Window size.
    • Method Detail

      • correct

        public com.aspose.enhence.ocr.sharedlibrary.bitmap.IBitmap correct(com.aspose.enhence.ocr.sharedlibrary.bitmap.IBitmap bitmap)

        Applies correction to image

        Specified by:
        correct in class Filter
        Parameters:
        bitmap - input image
        Returns:
        corrected image
      • getSize

        public int getSize()

        Gets or sets Size of a filter.

      • setSize

        public void setSize(int value)

        Gets or sets Size of a filter.