Page 1 of 1
How to improve the sharpness of an image for OCR
Posted: Fri Dec 29, 2023 7:56 am
by loulou2522
I'm looking for a way to improve the sharpness of an image so that I can process it with Tesseract to extract the text. Does anyone have a solution?
Thanks
Re: How to improve the sharpness of an image for OCR
Posted: Fri Dec 29, 2023 9:43 pm
by Tenaja
For a single file, load it into Paint.Net and adjust contrast...
sorry, can't help with the code, but pdn is open source (I think), so viewing the code might get you a solution.
Re: How to improve the sharpness of an image for OCR
Posted: Sat Dec 30, 2023 11:48 am
by SPH
I'm curious : post your pic here. I want to see it

Re: How to improve the sharpness of an image for OCR
Posted: Sat Dec 30, 2023 12:19 pm
by DarkDragon
Tesseract often needs images of a certain size. You might want to resize your input image a bit. Smaller texts may not be recognized. Sharpness is usually not the problem. Most deep learning methods are also
vulnerable to single pixel changes. So don't totally trust the textual output of any OCR.