aksonocr-lite / README.md
multimodalart's picture
multimodalart HF Staff
Upload folder using huggingface_hub
7554d8b verified
|
Raw History Blame Contribute Delete
1.86 kB
metadata
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

Examples

The bundled example pages are the ones the authors showcase in the AksonOCR-Lite README (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). Weights mirrored from the 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).