title: Java OpenCV + Tesseract OCR "code" regocnition
body: <p>I'm trying to automate a process where someone manually converts a code to a digital one.</p>
  <p><img src="https://i.stack.imgur.com/ugVc5.png" alt="Analog code" /></p>
  <p>Then I started reading about OCR. So I installed tesseract OCR and tried it on some images. It doesn't even detect something close to the code.</p>
  <p>I figured after reading some questions on stackoverflow, that the images need some preprocessing like skewing the image to a horizontal one, which can been done by openCV for example.</p>
  <p>Now my questions are:</p>
  <ul>
  <li>What kind of preprocessing or other methods should be used in a case like the above image?</li>
  <li>Secondly, can I rely on the output? Will it always work in cases like the above image?</li>
  </ul>
  <p>I hope someone can help me!</p>