![]() |
Aspose.OCR for Python via Java API docs
|
Helper class for Aspose OCR library. More...
Static Public Member Functions | |
| save (images, folderPath) | |
Helper class for Aspose OCR library.
Allows to preprocess and save images.
|
static |
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.
\code
filters = new PreprocessingFilter();
filters.add(PreprocessingFilter.auto_dewarping());
filters.add(PreprocessingFilter.invert());
filters.add(PreprocessingFilter.threshold(150));
filters.add(PreprocessingFilter.binarize());
filters.add(PreprocessingFilter.rotate(180));
filters.add(PreprocessingFilter.scale(6));
filters.add(PreprocessingFilter.dilate());
images = OcrInput(InputType.PDF, filters);
\endcode
You don't need all of them. Set only what you need.
@param images: OcrInput object containing different images OcrInput.
@param folderPath: Path without image names for saving processed images.
@return: OcrInput object containing result processed images OcrInput.