I am trying OCR OCR in the following image, and as you can see, many of the letters are not complete. They miss parts that cause some bad results from Tesseract.

I tried to undermine the image using the following code, but it doesn't seem to do much:
Mat eroded;
double element_size = 25;
RNG rng(12345);
Mat element = getStructuringElement( cv::MORPH_ELLIPSE,cv::Size( 2*element_size + 1, 2*element_size+1 ),cv::Point( element_size, element_size ) );
erode(src, eroded, element);
Does anyone know how I can sharpen this text so that the letters become consistent?
source
share