public class BlurFilter extends Filter
Represents mean filtration algorithm.
OcrEngine ocrEngine = new OcrEngine(); // Add mean filtration. ocrEngine.getConfig().getCorrectionFilters().add(new BlurFilter());
Constructor and Description |
---|
BlurFilter()
Initializes a new instance of the BlurFilter class.
|
BlurFilter(int size)
Initializes a new instance of the BlurFilter class.
|
Modifier and Type | Method and Description |
---|---|
com.aspose.enhence.ocr.sharedlibrary.bitmap.GrayBitmap |
correct(com.aspose.enhence.ocr.sharedlibrary.bitmap.GrayBitmap bitmap)
Applies correction to image
|
int |
getSize()
Gets or sets Size of a filter.
|
void |
setSize(int value)
Gets or sets Size of a filter.
|
public BlurFilter()
Initializes a new instance of the BlurFilter class.
public BlurFilter(int size)
Initializes a new instance of the BlurFilter class.
size
- Window size.public com.aspose.enhence.ocr.sharedlibrary.bitmap.GrayBitmap correct(com.aspose.enhence.ocr.sharedlibrary.bitmap.GrayBitmap bitmap)
Applies correction to image
public int getSize()
Gets or sets Size of a filter.
public void setSize(int value)
Gets or sets Size of a filter.