-3

My image looks like this enter image description here

I found a similar question here: How to invert colors of image with PIL (Python-Imaging)? But I could not understand how to implement it for my image.

Community
  • 1
  • 1
rishabh
  • 71
  • 11
  • What do you want to do exactly ? And what have you tried so far ? – Gwen Dec 20 '16 at 10:06
  • (1) What Python packages are you using to solve this problem? (2) What exactly do you want to do? Do you want to extract out the digits as separate blobs, or do you simply want to remove the gridlines from the image while leaving the rest of the image intact? Your question is currently too broad to answer as there are multiple interpretations and multiple solutions depending on each interpretation. – rayryeng Dec 20 '16 at 21:29
  • @rayryeng@gwen I am trying to remove the gridlines from the image so that I can cut the image into 10 parts. Its crucial that each part has only one digit and that each part is of equal size. Its for a digit recognition project, – rishabh Dec 21 '16 at 16:32
  • Why don't you segment out the digits and ignore the grid lines? You also haven't told us which Python packages you're using. – rayryeng Dec 21 '16 at 16:35

1 Answers1

0

Dilation will erase the thinnest lines, but damage the characters a little.

It is so much easier to ignore the lines at the blob detection stage...

enter image description here