Fast Thai + English printed-text OCR that runs on a CPU, no GPU needed. 0.002B (2.02M parameters) in all, about 8 MB of ONNX files. It is the engine behind iApp Document OCR v3.0, from OpenThai (formerly OpenThaiGPT). Developed by iApp, launched with AIEAT. It returns a page's text in reading order, with a box and a confidence for every line. For tables and Markdown, use OpenThai2.2-OCR-Markdown-20261127.
Same pages, same scoring (character accuracy; higher is better), Typhoon run as its own card says.
| OpenThai2.2-OCR-Text 0.002B (2.02M) | Typhoon OCR V2 0.8B | Result | |
|---|---|---|---|
| Average of 12 printed Thai and English sets | 88.2 | 85.1 | Win, +3.1 |
| Administrative Court judgments | 97.0 | 95.6 | |
| Royal Gazette | 97.8 | 96.0 | |
| Parliament budget documents | 99.6 | 85.9 | |
| Old books (Thai Wikisource) | 78.8 | 76.3 | |
| OCR104 Thai+English crops | 87.9 | 82.1 | |
| ThaiOCRBench full pages | 83.8 | 86.1 | |
| Runs on | a CPU | an NVIDIA GPU | |
| Seconds per page ‡ | 0.39 on a CPU | 1.71 on an H100 (with its EAGLE-3 head) | No GPU needed |
| Throughput | about 57,000 pages an hour on 8 CPU cores | needs a GPU |
Win means we are ahead even at the low end of the 95% confidence range (+1.4 to +4.9, from re-sampling the test pages). A page a model fails on counts as empty.
‡ One page at a time; not the same pages (ours: 24 printed pages on an Intel Xeon CPU; Typhoon: Thai document pages on an H100, 27 November 2026), so read them as a rough guide, not a ratio.
Where Typhoon OCR V2 0.8B is ahead: handwriting (69.8 against 10.3; this model does not target handwriting), receipts (77.8 against 68.3), scene text, and ThaiOCRBench full pages.
judge9.onnx) can only change ๕ to ๙, and nothing else moved on the benchmark.# pip install openvino opencv-python-headless pyclipper numpy huggingface_hub (or onnxruntime instead of openvino)
from huggingface_hub import snapshot_download
snapshot_download("iapp/OpenThai2.2-OCR-Text-20261127", local_dir="OpenThai2.2-OCR-Text")
import sys; sys.path.insert(0, "OpenThai2.2-OCR-Text")
from runtime.line_engine import LineOCR
ocr = LineOCR("OpenThai2.2-OCR-Text", threads=1)
r = ocr.read("page.png") # path, bytes, BGR ndarray or PIL image
print(r["text"]) # lines in reading order (columns one after another)
r["lines"] # [{"text", "confidence", "row", "box"}], boxes in the input image's coordinates
threads=1 (threads in one process stop scaling at about 2 cores).pip install onnxruntime, then
hf download PaddlePaddle/UVDoc_onnx inference.onnx --local-dir OpenThai2.2-OCR-Text/dewarp and
LineOCR(..., pre={"dewarp": True}). r["dewarp"] reports what was done.https://iapp.co.th/docs/ocr/document) is built on this engine.The runtime turns sideways and upside-down pages upright, deskews, reads two- and three-column pages column by column while keeping tables and lists in row order, handles light-on-dark and coloured text, and puts floating tone marks of old letterpress back on their line.
| Parameters | 2.02M: detector 428K (PP-OCRv6-tiny), recognizer 587K, second recognizer for loopless fonts 587K, ๙ classifier 422K |
| Files | det.onnx, rec.onnx, rec2.onnx, judge9.onnx (about 8 MB), with the Python runtime in runtime/ |
| Hardware | CPU only; about 450 MB of RAM per worker process; OpenVINO (bfloat16 on CPUs with AMX) or ONNX Runtime |
| Training data | 410,270 real text lines (court scans, parliament budget PDFs, Wikisource old books) and synthetic lines |
| Versions | 2.2.1 = tag v2.2.1; 2.2.0 = v2.2.0; 2.1.4 = v2.1.4; 2.0 = v2.0.0. Earlier names (OpenThai2.0-OCR-Text, OpenThai2.1-OCR-Text-20261118) redirect here. |
Built on PaddlePaddle PP-OCRv6-tiny (Apache-2.0). Trained on NVIDIA H100 GPUs provided by Siam AI. The dewarping page mask is iApp's ONNX export of the MonkeyOCRv2 preprocessor's page mask (zenosai/MonkeyOCRv2-S-Parsing, Apache-2.0).
Apache-2.0.
dewarp/dewarp_mask.onnx 5 MBpytorch/rec_weights.pt 2 MBrec.onnx 2 MBrec2.onnx 2 MBdet.onnx 2 MBjudge9.onnx 2 MB