Tesseract extracts text from images via libtesseract and a tesseract CLI. It supports neural and legacy engines, many languages, and multiple output formats.
Overview
Tesseract is an optical character recognition package that ships the libtesseract library and a tesseract command-line program. The current engine adds LSTM-based line recognition while still allowing legacy pattern-based recognition when trained data and engine modes require it.
It reads common image formats such as PNG, JPEG, and TIFF, accepts UTF-8 text in more than a hundred languages out of the box, and can emit plain text, hOCR, PDF, TSV, ALTO, PAGE, and related formats. Developers embed recognition through C or C++ APIs, with third-party language bindings documented separately.
The project does not include a GUI application; users rely on the CLI or their own programs. Additional language packs and training workflows exist for custom models. Image preprocessing often improves accuracy before recognition.
Key features
- LSTM and legacy OCR engines
- Hundred-plus packaged languages
- CLI and libtesseract APIs
- PNG JPEG and TIFF image input
- hOCR PDF TSV ALTO outputs
- Unicode UTF-8 text support
- Trainable custom language models
- Leptonica image I/O dependency
Use cases
- Batch document text extraction
- Digitizing scanned pages to PDF
- Building OCR into applications
- Converting screenshots to searchable text
- Custom language model training