A
A
antoncti2014-07-23 08:57:28
Java
antoncti, 2014-07-23 08:57:28

How to implement dot/comma digit recognition for android application?

Hello.
I would like to implement recognition of numbers with a dot / comma from a photo.
The image will contain text of small size, and the necessary numbers will be highlighted
by their size (they will be large). It is necessary to recognize the big numbers.
For this implementation, is it better to use OpenCV or implement a neural
network yourself (I haven’t come across either in practice yet)? If there are other options,
I would also like to know them.
Thank you.
PS: Numbers, signs and text will be printed

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vitaly Zheltyakov, 2014-07-23
@antoncti

Easy:
- Apply the "Threshold" filter or set high contrast;
- We select individual characters, breaking the picture along clean lines of the same color (white);
- We divide each character into 9 parts (as in tic-tac-toe);
- We count the number of dots (black) for each part;
- Compare the ratio of the parts of the symbol with the reference.
This is more than enough to recognize numbers and signs.

A
anyd3v, 2014-07-23
@anyd3v

I was always amazed by such questions "Take ready-made or implement it yourself." If you are a mega pro at what you need (in this case: image recognition) and think that you are 1 better than the team that writes OpenVC, then write your own. Otherwise, take OpenVC and save yourself a lot of time and nerves. Alternatively, if you are interested in the topic, you can write your own implementation in parallel, and as soon as it works at least as well as for your case, then switch to your bike.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question