Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.
Photos taken in low light conditions can have a lot of digital noise. Noise can also show up in highly compressed JPEG images in form of compression artifacts. This noise can mislead OCR algorithms and prevent other preprocessing filters from working properly.
Aspose.OCR provides an alternative function for removing noise from an image at the cost of some detail, called the median filter. This makes the image a little blurry while preserving the edges of high-contrast objects such as letters. The results can be further improved with the auto-contrast or binarization preprocessing filters.
To smooth out noise in an image, run the image through OCR_IMG_PREPROCESS_MEDIAN
preprocessing filter.
std::string image_path = "source.png";
custom_preprocessing_filters filters_;
filters_.filter_1 = OCR_IMG_PREPROCESS_MEDIAN;
asposeocr_preprocess_page_and_save(image_path.c_str(), "result.png", filters_);
Median filter is recommended for the following images:
Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.