tesseract image.png output --oem 1

Category: AI/ML Tooling

tesseract image.png output --oem 1

Force the LSTM OCR engine

Selects OCR engine mode 1, the neural LSTM engine, versus the legacy engine (mode 0) or tesseract's auto-choice (mode 3). The LSTM engine is far more accurate on modern fonts. Modes only matter when your build ships both engines.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.