# Detect numbers on the image [duplicate]

How to detect numbers on the following image

I tried:

  img=Import["http://imgur.com/TDbn7sB.png"]

set = ImagePartition[img, Scaled[{1/20, 1/5}]] // Flatten


then I tried Classify[] but it doesn't work for large number of data,(greater than 3)

• Have you seen the question Recognizing integers in an image? Perhaps this and this might help as well. – C. E. Oct 28 '16 at 9:57
• I think what that message is trying to tell you is that you have too few training samples. "The number of classes is close to the number of examples" -> you should increase the number of examples. – Niki Estner Oct 28 '16 at 10:02
• @C.E. I don't think the duplicates apply considering vito tries to use Machine Learning to do this – Feyre Oct 30 '16 at 16:39
• @Feyre So if I were to ask "how do I binarize an image? I tried using Binarize" that would not be a duplicate of "how do I binarize an image? I tried using ImageFilter," or what? I'm not saying that OP's attempt is a duplicate of another post, I'm saying that the question is a duplicate. If he were to make machine learning a part of the question, then the situation would be different. – C. E. Oct 30 '16 at 16:46
• @Feyre The idea with tagging the other question as a duplicate isn't that answers using machine learning aren't welcome, it's that they are just as welcome in that other question as in this one. So the situation becomes ambiguous: if someone wants to post a machine learning-based answer, in which question should he post it? That's the problem we solve by tagging questions as duplicates. – C. E. Oct 30 '16 at 16:48