title: PyTesseract - Text broken by horizontal white lines
body: <p>It is a classic PyTesseract problem of noisy image scanning. However, in this case dot matrix printer is printing some horizontal white lines in the text. Attached are some samples. I am not sure what kind of preprocessing will improve the scanning of the text.<br>
  <a href="https://i.stack.imgur.com/voN4H.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/voN4H.png" alt="Sample image"></a><br>
  Using below command following output comes for below sample:</p>
  
  <pre><code>tesseract test.png stdout  --psm 6 --dpi 120
  </code></pre>
  
  <p>Output:  (Expected is "RVC 64.80%" )</p>
  
  <pre><code>PRVG
  64.5056"
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/anDUP.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/anDUP.png" alt="Sample 2"></a><br>
  For Above image pytesseract gives </p>
  
  <pre><code>152.00 KILOGRAW
  817.51 USO
  </code></pre>
  
  <p>and the expected is - 152.00 KILOGRAM 617.51 USD   </p>
  
  <p>I know the images are noisy so please do not post obvious answer that as the images are noisy so the output is bad. As I always get same text from the printer so I can apply same type of preprocessing.</p>