9 ms·
I’m working on OCR to recognize the scores on pinball machines. I have about a quarter million photos encompassing every model of pinball machine in the world b
by needz 5y ago
I’m working on OCR to recognize the scores on pinball machines. I have about a quarter million photos encompassing every model of pinball machine in the world but I just don’t have the know-how to accommodate all the font styles.
- ad404b8a372f2b9 5y agoHave you tried an off-the-shelf solution like Tesseract? It works quite well if you do the recommended preprocessing.
- needz 5y agoThe preprocessing suggestions I see are to crop out everything except for the numbers and I don’t know how to do that programmatically. There’s many kinds of displays: rollers, 7-segment, dot matrix, and LCD. The preprocessing to increase DPI to 300 did not help when I tried Tesseract, unfortunately. It’s hard to achieve a good contrast between the numbers and the backdrop
- ad404b8a372f2b9 5y agoThere are a lot of other options and preprocessing methods you can use to get better results. It's hard to tell without seeing the picture but thresholding/binarization might help with the contrast. In order to isolate the text, the mode option also makes a lot of difference: https://tesseract-ocr.github.io/tessdoc/ImproveQuality.html#page-segmentation-method https://tesseract-ocr.github.io/tessdoc/ImproveQuality.html#... If that doesn't work you'll have to add a text localization model to your pipeline.
- needz 5y agoThank you for your guidance. I will investigate further