How to Distinguish Slashed Zero From Eight (0->8) in OCR

折月煮酒 提交于 2021-01-27 06:22:21

问题


I'm using ML Kit for Firebase for my Android app (ReCalc: Receipt Calculator) and it performs very well except in the case of slashed zero. In around half or more of the cases it recognizes slashed zero as eight.

One idea I have is to slice the rectangle containing the zero in regions and detect whether the regions just above and below the middle are dark or not. But actually...

I'm planning to train a model to classify zeroes and eights.

This is a lot of work thus I decided first to ask here for another solution/idea.

Here is an example:

Example of incorrectly recognized zeroes and eights

Similar question: Tesseract OCR confuses slashed 0 as 8


回答1:


Finally I've trained a model myself.

Its accuracy is pretty good (more than 98%). However I have concerns how well it generalize.

Here is the project: ZEC - Slashed Zero-Eight Classifier

I've created also an application showing how to use the model on Android: ZECA - Slashed Zero-Eight Classifier for Android



来源:https://stackoverflow.com/questions/58312408/how-to-distinguish-slashed-zero-from-eight-0-8-in-ocr

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!