Model reference · open weights

OpenThai2.2-OCR-Text-20261127

LLMs iapp Image→text 1 build Open weights 8k dl/mo

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.

  • OpenThai2.2-OCR-Text-20261127 is a 2.02M parameter image-to-text model developed by iapp for extracting printed Thai and English text.
  • It runs on CPU without a GPU and is licensed under Apache-2.0.
  • The model returns text in reading order with line-level confidence scores and bounding boxes.

Summary of the iapp/OpenThai2.2-OCR-Text-20261127 model card, 2026-11-28

What it is

Released byiapp
Released2026-10-02
VRAM2 MB for the weights

What it runs on

Memory and cards for OpenThai2.2-OCR-Text-20261127 (BF16)

2 MBweights, file size
762 MBruntime overhead, at least

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.

CardWeights alone
RTX 3060 12 GBfits
RTX 4060 Ti 16 GBfits
RTX 3090 24 GBfits
RTX 4090 24 GBfits
RTX 5090 32 GBfits
L40S 48 GBfits
A100 80 GBfits
H100 80 GBfits
RTX PRO 6000 Blackwell 96 GBfits
DGX Spark (GB10) 128 GB unifiedfits
H200 141 GBfits
B200 180 GBfits

From the model card

What iapp says about OpenThai2.2-OCR-Text-20261127

Read 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.

Against Typhoon OCR V2 0.8B

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.8BResult
Average of 12 printed Thai and English sets88.285.1Win, +3.1
Administrative Court judgments97.095.6
Royal Gazette97.896.0
Parliament budget documents99.685.9
Old books (Thai Wikisource)78.876.3
OCR104 Thai+English crops87.982.1
ThaiOCRBench full pages83.886.1
Runs ona CPUan NVIDIA GPU
Seconds per page ‡0.39 on a CPU1.71 on an H100 (with its EAGLE-3 head)No GPU needed
Throughputabout 57,000 pages an hour on 8 CPU coresneeds 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.

What is new in 2.2

  • 2.2.1: old-style ๙ is read as ๕ far less often (typewriters and old letterpress). On 918 unseen old pages, ๙ read as ๕ fell from 19 to 6; a small classifier (judge9.onnx) can only change ๕ to ๙, and nothing else moved on the benchmark.
  • 2.2.0: optional flattening of phone photos (off by default; scans and PDFs are left alone). On 200 simulated phone photos, accuracy 86.7 → 90.5.

Use

# 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
  • Throughput: run one worker process per core with threads=1 (threads in one process stop scaling at about 2 cores).
  • Phone photos: 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.
  • Step-by-step guide for Windows, Mac and Linux, with a script for pictures and PDFs: English · ภาษาไทย · 中文 (written for 2.0; use this repository's name).
  • iApp API: Document OCR (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.

Model at a glance

Limits

  • Printed text only: handwriting, receipts photographed at an angle and scene text read poorly.
  • No tables or Markdown: use OpenThai2.2-OCR-Markdown for those.
  • A ๙ the detector or recognizer loses is not recovered by the classifier.

Acknowledgements

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).

Licence

Apache-2.0.

Quoted from the model card on Hugging Face. The full card is behind the Hugging Face link above.

How it works

How language models work

Your prompttext / messagesTransformerattention over tokensNext-token loopgenerate + streamResponsetext · tool callsA language model reads your tokens and predicts the next one, again and again, streaming the reply back.
© 2026 AxForge · EU-hosted AI infrastructure Pricing Docs Trust Privacy Terms