ImageProcessing

ImageProcessing class

Helper class for Aspose OCR library. Allows to preprocess and save images.

The ImageProcessing type exposes the following members:

Methods

NameDescription
save(images, folder_path)Use image processing to improve the accuracy of OCR.
Create a list of filters that will be applied to the input image in the order you specify.
Example to create filters:
PreprocessingFilter filters = new PreprocessingFilter
{
PreprocessingFilter.Invert(),
PreprocessingFilter.Threshold(150),
PreprocessingFilter.Binarize(),
PreprocessingFilter.Rotate(180),
PreprocessingFilter.Resize(3000,3000, Aspose.OCR.Filters.InterpolationFilterType.Box),
PreprocessingFilter.Scale(6f),
PreprocessingFilter.Dilate()
};
You don’t need all of them. Set only what you need.
render(images)Use image processing to improve the accuracy of OCR.
Create a list of filters that will be applied to the input image in the order you specify.
example to create filters:
PreprocessingFilter filters = new PreprocessingFilter
{
PreprocessingFilter.Invert(),
PreprocessingFilter.Threshold(150),
PreprocessingFilter.Binarize(),
PreprocessingFilter.Rotate(180),
PreprocessingFilter.Resize(3000,3000, Aspose.OCR.Filters.InterpolationFilterType.Box),
PreprocessingFilter.Scale(6f),
PreprocessingFilter.Dilate()
};
You don’t need all of them. Set only what you need.

See Also