6

I have been implementing an Android OCR tool using tesseract to ocr digits only. So far, it is giving quite high accuracy with normal digit fonts. However, the accuracy is terrible when it comes to 7 segment digits (those found on LCDs) .

I have tried cropping my image, whitelist with 0 to 9 and also some image processing to no avail. Any ideas out there on how to increase the accuracy ? Or perhaps some tips on training the specific 7 segment digits for tesseract will definitely help me a lot.

Thanks in advance.

7
  • I don't think you can get good results without retraining. It would be nice if there were a publicly available traineddata file for 7-segment digits, but I wasn't able to find one when I looked. Commented Nov 29, 2012 at 19:19
  • Thank you for the reply. Your blog really helped me a lot in my implementation. So, lots of thanks to you. I am planning to train it and am looking into bbtesseract for the boxing process. I will highly appreciate it if anyone can share some tips for the training process because the official one is kinda confusing to me. Commented Nov 30, 2012 at 4:44
  • You can use jTessBoxEditor to edit or generate TIFF/box files to be used in training. There's also a PowerShell script train.ps1 that helps automate the rest of the training. Commented Dec 1, 2012 at 15:24
  • @laurie7: did u find good example to train the tesseract Commented Dec 13, 2012 at 21:13
  • tesseract img.png out -psm 7 digits does this command helps ? Commented Jul 26, 2013 at 7:23

1 Answer 1

2

You can find traineddata for 7 segments at:

https://github.com/arturaugusto/display_ocr/tree/master/letsgodigital

There is also a sample python code at the same repository.

Sign up to request clarification or add additional context in comments.

2 Comments

Could you tell me how do you trained tesseractor only for digits?
I have generated some images using a font called "lets go digital", added some noise using gimp, used jTessBoxEditor to generate box data and used this tool for training. Read tesseractocr FAQ for more details. I have also shared the training sources

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.