tesseract
Remove gridlines :
exemple (cf. http://www.imagemagick.org/script/command-line-processing.php) :
convert input.png \ -negate \ -define morphology:compose=darken \ -morphology Thinning Rectangle:1x30+0+0 \ -negate \ e2.png