Package | Description |
---|---|
com.aspose.ocr |
Modifier and Type | Method and Description |
---|---|
static PreprocessingFilter |
PreprocessingFilter.Binarize()
Converts an image to black-and-white image.
|
static PreprocessingFilter |
PreprocessingFilter.BinarizeAndDilate()
Dilation adds pixels to the boundaries of objects in an image.
|
static PreprocessingFilter |
PreprocessingFilter.ContrastCorrection()
Contrast correction filter.
|
static PreprocessingFilter |
PreprocessingFilter.Invert()
Automatically inverts colors in a document image.
|
static PreprocessingFilter |
PreprocessingFilter.Median()
The median filter run through each element of the image and replace each pixel with the median of its neighboring pixels.
|
static PreprocessingFilter |
PreprocessingFilter.Resize(int width,
int height)
Rescale image - Upscale or downscale image resolution.
|
static PreprocessingFilter |
PreprocessingFilter.Resize(int width,
int height,
InterpolationFilterType type)
Rescale image - upscale or downscale image resolution.
|
static PreprocessingFilter |
PreprocessingFilter.Rotate(float angle)
Rotate original image.
|
static PreprocessingFilter |
PreprocessingFilter.Scale(float ratio)
Rescale image - Upscale or downscale image resolution.
|
static PreprocessingFilter |
PreprocessingFilter.Scale(float ratio,
InterpolationFilterType type)
Rescale image - Upscale or downscale image resolution.
|
static PreprocessingFilter |
PreprocessingFilter.Threshold(int value)
Create a binary image based on setting a threshold value on the pixel intensity of the original image.
|
static PreprocessingFilter |
PreprocessingFilter.ToGrayscale()
Converts an image to grayscale image.
|
Modifier and Type | Method and Description |
---|---|
void |
PreprocessingFilter.add(PreprocessingFilter filter)
Add the new filter to the collection to further run all operations.
|
BufferedImage |
AsposeOCR.PreprocessImage(BufferedImage image,
PreprocessingFilter filters)
Use image preprocessing to improve the accuracy of OCR.
|
BufferedImage |
AsposeOCR.PreprocessImage(String fullPath,
PreprocessingFilter filters)
Use image preprocessing to improve the accuracy of OCR.
|
void |
RecognitionSettings.setPreprocessingFilters(PreprocessingFilter preprocessingFilters)
Allows to prepare the image for OCR by adjusting pre-processing methods.
|