1 | initial version |
It's a hard task to extract informations from images as noisy as your last binarized one. Basically, what you need, is a clever binarization algorithm. You could try using adaptiveThreshold() or Otsu's algorithm for example. The problem is, that your image has a very weak contrast. Having lines on your paper doesn't make it easier of course. Maybe by using a thicker pen, you could get rid of the lines with erode()