0

I'm trying to convert simple image with numbers to text using https://github.com/tesseract-ocr/tesseract. I compiled latest version from github with Leptonica and other libs required for image process.

My image looks like this: enter image description here

I'm trying to convert it like this: /usr/local/bin/tesseract '/home/var/img2text/phone.png' out but instead of numbers something like 3m mam. what could be the problem?

user1564141
  • 5,911
  • 5
  • 21
  • 18

1 Answers1

0

The image is small and the quality of it is a little low, try the following:

1- Change its DPI to 300

2- Resize the image 2x and apply Resample interpolation.

3- Make sure it is a B/W image.

Here are some useful links:

https://code.google.com/p/tesseract-ocr/wiki/ImproveQuality

image processing to improve tesseract OCR accuracy

Community
  • 1
  • 1
David
  • 640
  • 1
  • 7
  • 15