Mindket

Document Layout Detection

Newversion 1 · updated

Overview

A Gradio app that detects the layout of a document page image, with two example pages included. Suits developers and students who want to try layout detection in a browser.

Document Layout Detection is a kit in the Developer category, listed by Mindket. It is free. This is version 1, last updated on . Download it on this page, a zip of its files. Nothing in it runs by itself.

At a glance

You need
  • Nothing to install for the online version
  • Python 3.10 for a local copy
  • The packages listed in requirements.txt
  • The system packages in packages.txt, which the hosted Space installs with apt-get
Runs in
  • A web browser, on the Space's page on Hugging Face
  • Python 3.10 on Windows, macOS or Linux, using a downloaded copy
Start with
pip install -U huggingface_hub
hf download Theivaprakasham/layoutdetection --repo-type space --local-dir layoutdetection
cd layoutdetection

Platform

WindowsOperating system
macOSOperating system
LinuxOperating system

About

What it is

Document Layout Detection is a Gradio app by Theivaprakasham. By its name, it finds the layout of a document page picture. The repository has two example page images beside the app code. The page has no description, so the layout parts it marks are not confirmed.

Who it suits

Developers and students working with scanned documents who want to see layout detection on a page, or who want a short Gradio example to adapt.

IndustryWho uses itHow they use itExample
SoftwareDevelopersUse the project as a pattern for a Gradio document demoReplace the example pages with their own scans
EducationDocument AI studentsRun the demo and read app.py to see how detection is calledTry the two bundled pages
Office workTeams with scanned paperCheck how a layout model reads their pages before building a pipelineTest one scanned page

Skip it if you need text read out of a page, because the name describes layout detection, not reading text.

Where to use it

  • A web browser, on the Space's page on Hugging Face
  • Python 3.10 on Windows, macOS or Linux, using a downloaded copy
Use caseWhoWhat they get back
Try layout detection onlineAnyone curiousThe app's marking of the page's layout
Study a small document demoStudentsA short Python project with two example pages

How to set it up

  • Nothing to install for the online version
  • Python 3.10 for a local copy
  • The packages listed in requirements.txt
  • The system packages in packages.txt, which the hosted Space installs with apt-get
  1. Install the Hugging Face hub package.
  2. Download the Space's files to a folder.
  3. Move into that folder.
  4. Install gradio 5.29.0, then the packages from requirements.txt.
  5. Start the app with app.py.
pip install -U huggingface_hub
hf download Theivaprakasham/layoutdetection --repo-type space --local-dir layoutdetection
cd layoutdetection
pip install gradio==5.29.0
pip install -r requirements.txt
python app.py

How to use it

Open the Space page in a browser and give it a page image, or pick one of the two bundled examples. For a local copy, run the app and open the page Gradio opens for you.

python app.py
ToolWhat it does
python app.pyStarts the Gradio app on your computer
hf downloadCopies the Space's files into a local folder

Example

Open the Space and choose the first bundled page. The app should show the layout it detects on that page. The page does not say how results are drawn or named, so rely on what it shows.

For newcomers and experts

If you are new to this, try the two bundled pages first, then a scan of your own. Only use documents you have the right to upload.

If you know the field, the page names no model, label set or score threshold. It pins Gradio 5.29.0 and Python 3.10, so read app.py for the actual method before you rely on it.

  1. A page image goes in
  2. The app detects layout regions
  3. Regions are marked on the page
  4. Gradio shows the result

Good to know

  • The page gives no description, accuracy figures or limits on page size.
  • The online version needs nothing installed, and a local copy needs Python 3.10.
  • License: apache-2.
  • Cost to run: none named, only the packages in requirements.txt and packages.txt.
  • Data it reaches: the page image you give it. On the hosted Space, that image is handled on Hugging Face.
  • Not for: reading page text. The source describes layout detection only.

README and files

README

Document Layout Detection

A Gradio app that detects the layout of a document page image, with two example pages included. Suits developers and students who want to try layout detection in a browser.

Made by Theivaprakasham on Hugging Face. These notes are Mindket's, written from its Space page and README; the app's own files and license are on Hugging Face.

About

What it is: Document Layout Detection is a Gradio app by Theivaprakasham. By its name, it finds the layout of a document page picture. The repository has two example page images beside the app code. The page has no description, so the layout parts it marks are not confirmed.

Who it suits: Developers and students working with scanned documents who want to see layout detection on a page, or who want a short Gradio example to adapt.

Industry | Who uses it | How they use it | Example
Software | Developers | Use the project as a pattern for a Gradio document demo | Replace the example pages with their own scans
Education | Document AI students | Run the demo and read app.py to see how detection is called | Try the two bundled pages
Office work | Teams with scanned paper | Check how a layout model reads their pages before building a pipeline | Test one scanned page

Skip it if you need text read out of a page, because the name describes layout detection, not reading text.

Where to use it:

  • A web browser, on the Space's page on Hugging Face
  • Python 3.10 on Windows, macOS or Linux, using a downloaded copy
Use case | Who | What they get back
Try layout detection online | Anyone curious | The app's marking of the page's layout
Study a small document demo | Students | A short Python project with two example pages

How to set it up:

  • Nothing to install for the online version
  • Python 3.10 for a local copy
  • The packages listed in requirements.txt
  • The system packages in packages.txt, which the hosted Space installs with apt-get
  1. Install the Hugging Face hub package.
  2. Download the Space's files to a folder.
  3. Move into that folder.
  4. Install gradio 5.29.0, then the packages from requirements.txt.
  5. Start the app with app.py.
pip install -U huggingface_hub
hf download Theivaprakasham/layoutdetection --repo-type space --local-dir layoutdetection
cd layoutdetection
pip install gradio==5.29.0
pip install -r requirements.txt
python app.py

How to use it: Open the Space page in a browser and give it a page image, or pick one of the two bundled examples. For a local copy, run the app and open the page Gradio opens for you.

python app.py
Tool | What it does
python app.py | Starts the Gradio app on your computer
hf download | Copies the Space's files into a local folder

Example: Open the Space and choose the first bundled page. The app should show the layout it detects on that page. The page does not say how results are drawn or named, so rely on what it shows.

For newcomers and experts: If you are new to this, try the two bundled pages first, then a scan of your own. Only use documents you have the right to upload.

If you know the field, the page names no model, label set or score threshold. It pins Gradio 5.29.0 and Python 3.10, so read app.py for the actual method before you rely on it.

A page image goes in
The app detects layout regions
Regions are marked on the page
Gradio shows the result

Good to know:

  • The page gives no description, accuracy figures or limits on page size.
  • The online version needs nothing installed, and a local copy needs Python 3.10.
  • License: apache-2.
  • Cost to run: none named, only the packages in requirements.txt and packages.txt.
  • Data it reaches: the page image you give it. On the hosted Space, that image is handled on Hugging Face.
  • Not for: reading page text. The source describes layout detection only.

On Hugging Face, 13 November 2026

  • Likes: 6
  • Built with: gradio
  • License: apache-2.0

Links

Try it

Open the Space in your browser, or copy it to your own Hugging Face account from its page. Nothing in this kit runs by itself.

Files
README.md  4 KB

1 file, 4 KB, downloaded as a zip.

What’s new

  • Version 1 · 2026-11-13

Compare with similar

Listed Hugging Face Spaces in the same category that share the most tags with this one.

ProductLikesBuilt withLicenseLast change
Document Layout Detection This page6gradioapache-2.0
FLUX.1 [dev]Shares gradio9,583gradiomit
InstantIDShares gradio3,659gradioapache-2.0
Chat With Janus-Pro-7BShares gradio2,036gradiomit
PhotoMakerShares gradio1,960gradioapache-2.0
Z Image TurboShares gradio1,940gradioapache-2.0
Numbers as Mindket last read them, from 2026-11-12 to 2026-11-13.

Reviews

No ratings yet

Write a review

No reviews yet.

More from Mindket

See all from Mindket

Huashu Design

alchaincyf · Skill

Turns a one-line request in your AI agent into a finished design: a launch animation, a clickable app prototype, an editable slide deck, an infographic or a se…

New29.4k

Guizang PPT Skill

op7418 · Skill

Skill that makes single-file HTML slide decks, slide illustrations and platform covers in two visual styles, with a presenter mode for rehearsal. For speakers…

New29.8k

Claude Code Skills & Plugins

alirezarezvani · Skill

Adds 411 ready-made skills for Claude Code and other coding agents, grouped by role from engineering and product to marketing, finance and compliance. Installs…

New29.8k

Similar in Developer

See all in Developer

buzz

block · Kit

Self-hostable workspace where people and AI agents share the same rooms, built on a Nostr relay that logs every action as a signed event. For teams that want t…

New37.3k

plannotator

backnotprop · Kit

Opens your AI coding agent's plans, specs and code changes in a browser so you can annotate or comment on them and send the feedback straight back to the agent.

New10.5k

open-code-review

alibaba · Kit

Reviews Git changes with an AI agent that reads files and searches the codebase, then writes comments tied to exact lines. It suits developers who want automat…

New50.7k