Description
tesstrain is a training workflow for Tesseract 5 OCR, packaged as a Makefile so that dependencies between steps are tracked. You choose a model name, supply your ground truth data, run training, and produce traineddata model files you can use with Tesseract. It can also plot the character error rate so you can follow training progress. You need GNU make 4.2 or newer, wget, find, bash and unzip, a Tesseract 5.3 or newer build that includes the training tools with matching Leptonica, and Python 3 with Pillow, installable from the provided requirements file. Windows users get step-by-step setup notes using Git for Windows utilities and winget. Directory locations can be changed when your data lives elsewhere. It is aimed at people training custom LSTM models for new fonts, scripts or document types.…
Highlights
- Makefile-based Tesseract 5 LSTM training
- Train from your own ground truth data
- Builds traineddata model files
- Plots character error rate
- Setup notes for Linux and Windows
Ratings & Reviews
No ratings yet
Be the first to rate Tesstrain.
People also visit
Tesseract Wasm
JS/WebAssembly build of the Tesseract OCR engine for use in browsers and Node
Tesstrain FAQ
What is tesstrain?
A Makefile-based workflow for training Tesseract 5 LSTM models on your own ground truth data.
What do I need installed?
GNU make 4.2+, wget, find, bash, unzip, Tesseract 5.3+ built with training tools and matching Leptonica, and Python 3 with Pillow.
Does it work on Windows?
Yes. Install Tesseract, Python 3 and Git for Windows, put Git's usr/bin first in PATH, and use winget to install make and wget.
What does it produce?
traineddata model files for Tesseract, and optionally plots of the character error rate.
What are the best Tesstrain alternatives?
Popular alternatives to Tesstrain include Tesseract Wasm, Tesseract4Android and Trocr. See all Tesstrain alternatives

