I have a big complaint about function TextRecognize. Alexey Popkov have verified here. Actually it can do it as the attribute "BoundingBox" if the function is normally.

 TextRecognize[img1, "Word", "BoundingBox"]]

But as you see,it will give a very bad result.Since the MMA have the function of neural-networks,so I want to expect a neural-networks method to find all number and the position of the number. I have some samples image here for test


img2 = Uncompress[FromCharacterCode[


Could anyone can give some advice?

  • $\begingroup$ I think a traditional method may be easier. For example, use something like ContourDetect[img1] to detect the position of the numbers and characters, and then crop out the numbers and characters and feed them into a classifier. $\endgroup$ Commented Sep 22, 2017 at 17:33
  • $\begingroup$ @xslittlegrass Sorry, the processed image alway is gray image. and I cannot ensure the line of the frame will be more black than the digtal.So I have edited that original image just now.. $\endgroup$
    – yode
    Commented Sep 22, 2017 at 18:07


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.