Image Pre-Process Only- then Save

Hi, I need to “cleanup” the image for printing. I noticed that Aspose OCR can apply “filters” to pre-process the image before OCR. However, I don’t need to recognize the text except just wanting to making the image a bit sharper for printing. Is it possible to make use of the OCR library to save the image after applying “filters”. Thank you.

Hi Jason,

Thank you for contacting Aspose support.

You may use Aspose.OCR for .NET APIs to get the filtered images according to your requirements however, this may not be an efficient solution because Aspose.OCR APIs will allow you to the save the filtered images only after performing the OCR operation on the image. As you do not wish to get the OCR’d data so this process may harm your overal performance. Please check the details on how you can get the preprocessed images using Aspose.OCR for .NET APIs.

An alternative solution could be to use Aspose.Imaging for .NET API to binarize the images or tweak the image colors while using brightness, contrast and gamma correction algorithms. Please check the following articles for your reference.

Thanks for the reply. I did look at the “Aspose Image”. However, it doesn’t provide the same feature on image “cleanup” as OCR component is doing. The image processing in OCR is exactly what I needed. I need to process automatically all images that I received from the users’ camera without manual inspection and adjusting of Brightness, contrast and Gamma. Many times the picture from camera has some kind of dark/gray background which is not good when printing. The OCR’s noise removal will make the text sharper, which is exactly what I wanted.

Hi Jason,


Thank you for writing back.

If your application can compromise on the performance (as discussed in my previous post) then you can surely use Aspose.OCR APIs. However, it is suggested that you should also make a feature request by posting in Aspose.Imaging support forum if the current implementation of Aspose.Imaging APIs are not offering the required functionality. We will analyse the feasibility of your request, and try to bring them on our road map of Aspose.Imaging APIs.