com.aspose.ocr.filters

Class BlurFilter



  • public class BlurFilter
    extends Filter

    Represents mean filtration algorithm.


     
     OcrEngine ocrEngine = new OcrEngine();
     // Add mean filtration.
     ocrEngine.getConfig().getCorrectionFilters().add(new BlurFilter());
     

    • Constructor Summary

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

      • BlurFilter

        public BlurFilter()

        Initializes a new instance of the BlurFilter class.

      • BlurFilter

        public BlurFilter(int size)

        Initializes a new instance of the BlurFilter class.

        Parameters:
        size - Window size.
    • Method Detail

      • correct

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

        Applies correction to image

        Specified by:
        correct in class Filter
        Parameters:
        bitmap - input grayscale 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.