-
Notifications
You must be signed in to change notification settings - Fork 0
Languages
Luc Côté edited this page Jul 6, 2026
·
1 revision
The Free AAR ships English (eng.traineddata, from
tessdata_fast, ~4 MB) inside
assets/tessdata/. It is extracted to app-private storage on first
initialize() — nothing to download, works offline.
ocr.initialize(context, language = "eng")Download any *.traineddata (from tessdata_fast, tessdata, or tessdata_best),
then register it:
// e.g. after downloading fra.traineddata to a File
ocr.addLanguage(context, language = "fra", file = downloadedFile)
ocr.initialize(context, language = "fra")addLanguage copies the file into the engine's tessdata dir. On the next
initialize, that code becomes usable.
Join codes with +:
ocr.initialize(context, language = "eng+fra")Tesseract will recognise text in any of the listed languages. More languages = slower init and slightly slower recognition.
| Pack | Size / lang | Speed | Accuracy |
|---|---|---|---|
tessdata_fast |
~1–5 MB | Fastest | Good (Free default) |
tessdata |
~10–15 MB | Medium | Better |
tessdata_best |
~15–30 MB | Slowest | Best (Pro default) |
Full language list & downloads: https://github.com/tesseract-ocr/tessdata_fast
val langs = ocr.getAvailableLanguages(context) // e.g. ["eng", "fra"]Tesseract Pro bundles 12 languages using
tessdata_best (highest accuracy) — no runtime download needed.