title: Cleaning up an image for OCR with ImageMagick and 'textcleaner'
body: <p>I have the following image that I'd like to prepare for an OCR with tesseract:
  <img src="https://i.stack.imgur.com/ficx7.jpg" alt="enter image description here"></p>
  
  <p>The objective is to clean up the image and remove all of the noise.
  I'm using the <strong><a href="http://www.fmwconcepts.com/imagemagick/textcleaner/index.php" rel="noreferrer"><code>textcleaner</code></a></strong> script that uses ImageMagick with the following parameters:</p>
  
  <pre><code>./textcleaner -g -e normalize -f 30 -o 12 -s 2 original.jpg output.jpg
  </code></pre>
  
  <p>The output is still not so clean:
  <img src="https://i.stack.imgur.com/4ZH3k.png" alt="enter image description here"></p>
  
  <p>I tried all kinds of variations for the parameters but with no luck.
  Does anyone have an idea?</p>