# How to detect numbers in a picture if use opencv

Hello,I'm trying to detect numbers in a picture. I cut a row of image as follows: first,I calculated the height of the most characters,then the numbers's height are lower .And the numbers's width is smaller than height.But sometimes,the numbers are together.This is my trouble. Who can help me? Thank you very much in advance!

Take a look at machine learning - extracting digits from an image is the "Hello World" for machine learniing. That means is actually "pretty easy"

Take a look here https://www.tensorflow.org/tutorials/

Cnn (convolutionary neuronal networks) is the way to go for this kind of problems. It has a steep learning curve but is worth the effort it as it solves these kind of problem best.

You can also run these models on top of open cv if u want to.

have a look at east