I am extracting image matrices using opencv from a desktop application screenshot and using tesseract to read the cropped images. For instance, if you refer to the images below, Tesseract extracts "Relationship" image to be R’e‘auunshwp and member as Mamba!
Is the quality of attaching image too low for tesseract? What can I do to improve it?
UPDATE
I used the following code to resize image, which improved OCR quality. But, how do I calculate what would be 300DPI and then how do I ensure that the aspect ratio of the image remains the same at the scale?
Mat resizedMat = new Mat();
Size sz = new Size(mat.rows()*10,mat.cols()*10);
Imgproc.resize(mat,resizedMat,sz);