title: Tesseract 4 couldn't load any languages when used with OCR Engine mode - "Legacy + LSTM engines" (--oem 2)
body: <p>I think this issue is only related to Tesseract 4 which comes with LSTM support. As I am using a 64-bit Windows System, I have downloaded <a href="https://digi.bib.uni-mannheim.de/tesseract/tesseract-ocr-w64-setup-v4.1.0.20190314.exe" rel="nofollow noreferrer">64-bit windows executable</a> from here - <a href="https://github.com/UB-Mannheim/tesseract/wiki" rel="nofollow noreferrer">https://github.com/UB-Mannheim/tesseract/wiki</a></p>
  
  <p>It has the following OCR Engine modes:</p>
  
  <ul>
  <li>0    Legacy engine only.</li>
  <li>1    Neural nets LSTM engine only.</li>
  <li>2    Legacy + LSTM engines.</li>
  <li>3    Default, based on what is available.</li>
  </ul>
  
  <p>It works with all the modes except <strong>2</strong>.</p>
  
  <hr>
  
  <h2>When run with --oem 1</h2>
  
  <pre><code>tesseract --oem 1 1.jpg 1
  </code></pre>
  
  <p>Result:</p>
  
  <pre><code>Tesseract Open Source OCR Engine v4.0.0.20190314 with Leptonica
  Warning: Invalid resolution 0 dpi. Using 70 instead.
  Estimating resolution as 561
  Detected 5 diacritics
  </code></pre>
  
  <p>and creates a file <strong>1.txt</strong> with corresponding OCR result.</p>
  
  <hr>
  
  <h2>When run with --oem 2</h2>
  
  <pre><code>tesseract --oem 2 1.jpg 1
  </code></pre>
  
  <p>Result:</p>
  
  <pre><code>Failed loading language 'eng'
  Tesseract couldn't load any languages!
  Could not initialize tesseract.
  </code></pre>
  
  <p>and no output is generated.</p>
  
  <hr>
  
  <p>I thought the error will be with language installation but </p>
  
  <pre><code>tesseract --list-langs
  </code></pre>
  
  <p>which gave me the following result</p>
  
  <pre><code>List of available languages (2):
  eng
  osd
  </code></pre>
  
  <p>I even manually checked the <strong>tessdata</strong> folder, here is the screenshot of the same</p>
  
  <p><a href="https://i.stack.imgur.com/Fpjm4.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Fpjm4.png" alt="enter image description here"></a></p>
  
  <p>which clearly states I already have <strong>eng</strong> language.</p>
  
  <blockquote>
    <p>Can anyone help me with the exact problem that is disallowing me use
    Legacy + LSTM engines (--oem 2) mode.</p>
  </blockquote>