--- title: AksonOCR-Lite emoji: 📄 colorFrom: blue colorTo: purple sdk: gradio sdk_version: 6.32.0 app_file: app.py short_description: Thai + English document OCR to Markdown python_version: "3.12" --- # AksonOCR-Lite Fast **Thai + English document OCR** on ONNX Runtime — upload a page image or a PDF and get: - **Markdown** with layout headings, reading order and HTML tables (Table Transformer), - an **overlay** per page showing the detected layout blocks (in reading order) and text lines, - the full **JSON** (blocks, text-line boxes and confidences, rotation, timings). 81M params, ~330 MB of weights, runs on CPU (~1.5 s/page). Pipeline: page orientation (PP-LCNet) → layout + reading order (PP-DocLayoutV3) → text-line detection (PP-OCRv6) → grapheme-cluster Thai/English recognizer → table structure (Table Transformer v1.1). ## Model - Weights: [Remtir/AksonOCR-Lite](https://huggingface.co/Remtir/AksonOCR-Lite) - Code: [github.com/Remtir/AksonOCR-Lite](https://github.com/Remtir/AksonOCR-Lite) (Apache-2.0) - Benchmarks: MDPBench-th 85.6 with dewarp, ThaiOCRBench DP 0.640 — see [BENCHMARKS.md](https://github.com/Remtir/AksonOCR-Lite/blob/main/BENCHMARKS.md) ## Examples The bundled example pages are the ones the authors showcase in the [AksonOCR-Lite README](https://github.com/Remtir/AksonOCR-Lite) (a Thai government letter, a Thai financial statement and a handwritten page photo; Apache-2.0). ## Credits This Space's app is adapted from the authors' own Gradio playground ([tools/playground.py](https://github.com/Remtir/AksonOCR-Lite/blob/main/tools/playground.py)). Weights mirrored from the [Remtir/AksonOCR-Lite](https://huggingface.co/Remtir/AksonOCR-Lite) repo: PaddlePaddle PP-DocLayoutV3 / PP-OCRv6 / PP-LCNet ONNX exports (Apache-2.0) and Microsoft table-transformer-structure-recognition-v1.1-all (MIT).