Tetrak
GitHub ↗
Open source

Armenian text recognition

A recogniser we trained ourselves for printed Armenian, published as a small library that adds the language to EasyOCR, with the model, the word list and the training data in the open.

What it is for

Most OCR (optical character recognition) software reads Armenian badly or not at all. The free engines either have no Armenian model, or have one trained on so little that a page of a 1950s encyclopedia or a diaspora newspaper comes back half wrong. A collection with Armenian books, pamphlets and periodicals in it cannot be searched by its contents until something can read them.

This recogniser is our answer. It reads printed Armenian well enough to make a scanned page findable, and it is free to install, free to fork and free to retrain.

Who it is for

Libraries, archives and community collections with Armenian-language holdings; anyone building a digitisation workflow that has to handle Armenian; and researchers who want a recogniser they can measure, retrain or extend. If you already use EasyOCR, it is one pip install away. If you use Tetrak OCR, it is already the engine behind the easyocr-hy backend.

What it does today

How well it reads is measured on held-out pages from eight kinds of printed Armenian, against every other Armenian engine we can run. The numbers, and the kinds of page it still trails on, are in the articles below and on the model card; we do not copy them into prose, where they would go stale.

What it does not do yet

Get it

pip install tetrak-easyocr-armenian
import tetrak_hy

reader = tetrak_hy.reader()          # an easyocr.Reader, Armenian-ready
results = reader.readtext("scan.png")

Inside Tetrak OCR, pip install "tetrak[armenian]" installs the same model as the easyocr-hy backend. The weights download on first use and are checked against the release’s checksum every time they load.

Codegithub.com/scattercode/tetrak-easyocr-armenian
Packagetetrak-easyocr-armenian on PyPI
Model and word listtetrak/easyocr-armenian on Hugging Face
Training datatetrak/armenian-ocr-crops on Hugging Face
Trainergithub.com/scattercode/tetrak-hy-trainer, to retrain it or train a recogniser for another script
LicenceApache 2.0 for the code and the model; the word list is CC BY-SA 4.0 because of its sources

Articles about it

The story of the model, newest first, with the measurements that go with each step.