Model reference · open weights
OpenThai2.2-OCR-Text-20261127 is an open-weight language model from iapp. OpenThai2.2-OCR-Text-20261127 (BF16) weighs 2 MB; the smallest configuration that runs it is RTX 3060 12 GB.
For self-hosting, compare this build's requirements below with the GPU you plan to rent.
Summary of the iapp/OpenThai2.2-OCR-Text-20261127 model card, 2026-11-28
What it is
| Released by | iapp |
|---|---|
| Released | 2026-10-02 |
| VRAM | 2 MB for the weights |
What it runs on
How much memory each request adds isn't estimated yet for this architecture. The weights need at least the cards below, plus room for the context.
| Card | Weights alone |
|---|---|
| RTX 3060 12 GB | fits |
| RTX 4060 Ti 16 GB | fits |
| RTX 3090 24 GB | fits |
| RTX 4090 24 GB | fits |
| RTX 5090 32 GB | fits |
| L40S 48 GB | fits |
| A100 80 GB | fits |
| H100 80 GB | fits |
| RTX PRO 6000 Blackwell 96 GB | fits |
| DGX Spark (GB10) 128 GB unified | fits |
| H200 141 GB | fits |
| B200 180 GB | fits |
From the model card
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.
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.
Quoted from the model card on Hugging Face. The full card is behind the Hugging Face link above.
How it works