AIAny
AI Image2024
Icon for item

pdf-document-layout-analysis

Segments each PDF page into 11 labeled regions — titles, tables, formulas, figures, footnotes and more — and recovers reading order. Offers two engines: an accurate VGT visual model (~0.96 F1) or a faster CPU-only LightGBM ensemble.

Introduction

Most PDF parsers treat a page as a flat stream of text, which is why tables collapse and reading order scrambles the moment a layout goes two-column. This service starts from the opposite premise: work out the geometry first — what's a title, a footnote, a table, a formula — and only then extract text in the right order.

What Sets It Apart
  • Two interchangeable engines for the same job: a Vision Grid Transformer (originally from Alibaba's research group) that reads the whole page image for ~0.96 F1 on PubLayNet, and a Poppler + LightGBM ensemble that runs ~0.42s/page on CPU. So you trade accuracy against hardware instead of being locked to a GPU.
  • Eleven distinct segment labels — caption, footnote, formula, list item, page header/footer, picture, section header, table, text, title — not just "text vs. image". Downstream RAG or extraction can filter or weight regions by type.
  • It goes past detection into reconstruction: reading-order sorting, Tesseract OCR in 150+ languages, tables to HTML, formulas to LaTeX, plus Markdown/HTML export. One container turns a scanned PDF into structured, machine-usable output.
Who It's For + Tradeoffs

Great fit if you're building a document-ingestion or RAG pipeline and need clean, typed, correctly ordered segments from messy real-world PDFs — especially scanned or multi-column ones — and want to run it as a self-hosted Docker microservice, picking the engine per workload. Look elsewhere if you only need plain text from clean digital PDFs (a lightweight extractor is enough), or if you can't host a GPU and the CPU LightGBM accuracy falls short for your domain.

Information

  • Websitegithub.com
  • AuthorsHURIDOCS
  • Published date2024/05/06

Categories

More Items

GitHub
AI Image2026

Turns 530+ GPT-Image2 examples into a structured 'Prompt-as-Code' library and style skill for reproducible image-generation workflows; includes a browsable gallery, 20+ industrial templates, and an agent-ready style skill for automation.

GitHub
AI Image2022

Enlarges and enhances low-resolution images using AI models (Real-ESRGAN) through a cross-platform desktop app. Runs on a local NCNN/Vulkan backend (requires a Vulkan-compatible GPU), offers an Electron GUI plus a CLI backend (upscayl-ncnn), and supports custom models for different image types.

GitHub
AI Image2022

Web and desktop/mobile WebUI for generating, editing, captioning and processing images and videos with Stable Diffusion and many diffusion models. Key features include automatic model download, SDNQ on-the-fly quantization for VRAM savings, balanced CPU/GPU offload, multi-backend GPU support, and built-in captioning/tagging/upscaling workflows.