{"id":18273613,"url":"https://github.com/rapidai/rapidlayout","last_synced_at":"2026-04-02T11:41:43.617Z","repository":{"id":245040289,"uuid":"817081713","full_name":"RapidAI/RapidLayout","owner":"RapidAI","description":"Analysis of Chinese and English layouts  中英文版面分析","archived":false,"fork":false,"pushed_at":"2025-03-27T00:30:33.000Z","size":789,"stargazers_count":187,"open_issues_count":2,"forks_count":12,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-04-03T16:09:55.681Z","etag":null,"topics":["cdla","doclayout-yolo","layout","layout-analysis","pp-structure"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/RapidAI.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":null,"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"lfx_crowdfunding":null,"custom":"https://raw.githubusercontent.com/RapidAI/.github/6db6b6b9273f3151094a462a61fbc8e88564562c/assets/Sponsor.png"}},"created_at":"2024-06-19T01:41:27.000Z","updated_at":"2025-04-01T07:51:39.000Z","dependencies_parsed_at":"2024-12-13T17:11:18.681Z","dependency_job_id":"ea0406a4-dd05-4b2a-bd86-35ef97bdc154","html_url":"https://github.com/RapidAI/RapidLayout","commit_stats":null,"previous_names":["rapidai/rapidlayout"],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RapidAI%2FRapidLayout","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RapidAI%2FRapidLayout/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RapidAI%2FRapidLayout/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RapidAI%2FRapidLayout/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RapidAI","download_url":"https://codeload.github.com/RapidAI/RapidLayout/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248546291,"owners_count":21122287,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cdla","doclayout-yolo","layout","layout-analysis","pp-structure"],"created_at":"2024-11-05T12:07:04.732Z","updated_at":"2026-04-02T11:41:43.604Z","avatar_url":"https://github.com/RapidAI.png","language":"Python","funding_links":["https://raw.githubusercontent.com/RapidAI/.github/6db6b6b9273f3151094a462a61fbc8e88564562c/assets/Sponsor.png"],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n  \u003ch1\u003e\u003cb\u003eRapid \u003cimg src=\"https://cdn.jsdelivr.net/gh/twitter/twemoji@latest/assets/svg/1f4c4.svg\" width=\"28\" height=\"28\" alt=\"📄\" style=\"vertical-align: middle\"\u003e Layout\u003c/b\u003e\u003c/h1\u003e\n  \u003cdiv\u003e\u0026nbsp;\u003c/div\u003e\n  \u003cb\u003e\u003cfont size=\"4\"\u003e\u003ci\u003e文档版面分析 - 定位标题、段落、表格与图片等版面元素\u003c/i\u003e\u003c/font\u003e\u003c/b\u003e\n  \u003cdiv\u003e\u0026nbsp;\u003c/div\u003e\n\n\u003ca href=\"https://huggingface.co/spaces/RapidAI/RapidLayoutv1\" target=\"_blank\"\u003e\u003cimg src=\"https://img.shields.io/badge/%F0%9F%A4%97-Hugging Face Demo-blue\"\u003e\u003c/a\u003e\n\u003ca href=\"\"\u003e\u003cimg src=\"https://img.shields.io/badge/Python-\u003e=3.6-aff.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"\"\u003e\u003cimg src=\"https://img.shields.io/badge/OS-Linux%2C%20Win%2C%20Mac-pink.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://pypi.org/project/rapid-layout/\"\u003e\u003cimg alt=\"PyPI\" src=\"https://img.shields.io/pypi/v/rapid-layout\"\u003e\u003c/a\u003e\n\u003ca href=\"https://pepy.tech/project/rapid-layout\"\u003e\u003cimg src=\"https://static.pepy.tech/personalized-badge/rapid-layout?period=total\u0026units=abbreviation\u0026left_color=grey\u0026right_color=blue\u0026left_text=Downloads\"\u003e\u003c/a\u003e\n\u003ca href=\"https://semver.org/\"\u003e\u003cimg alt=\"SemVer2.0\" src=\"https://img.shields.io/badge/SemVer-2.0-brightgreen\"\u003e\u003c/a\u003e\n\u003ca href=\"https://github.com/psf/black\"\u003e\u003cimg src=\"https://img.shields.io/badge/code%20style-black-000000.svg\"\u003e\u003c/a\u003e\n\n\u003c/div\u003e\n\n### 📝 简介\n\nRapid Layout 汇集全网开源的版面分析能力，对文档类图像（论文截图、研报等）进行分析，定位其中的**类别与位置**，如标题、段落、表格、图片等版面元素。\n\n**支持场景概览：** 支持表格、中文、英文、论文、研报及通用版面等多种类型，内置 PP 系列、YOLOv8 系列以及推荐的 DocLayout-YOLO 等模型。不同场景版面差异较大，暂无单一模型覆盖所有场景；若业务效果不佳，建议自建训练集微调。完整模型列表与下载见[文档站](https://rapidai.github.io/RapidLayout/)。\n\n如果您觉得本仓库对您有帮助，欢迎给个 ⭐ 支持一下。\n\n### 🎥 效果展示\n\n\u003cdiv align=\"center\"\u003e\n    \u003cimg src=\"docs/images/layout_vis.jpg\" width=\"50%\"\u003e\n\u003c/div\u003e\n\n### 🛠️ 安装\n\n```bash\npip install rapid-layout onnxruntime\n```\n\n### 📋 使用\n\n```python\nfrom rapid_layout import RapidLayout\n\nlayout_engine = RapidLayout()\n\nimg_path = \"https://raw.githubusercontent.com/RapidAI/RapidLayout/718b60e927ab893c2fad67c98f753b2105a6f421/tests/test_files/layout.jpg\"\nresults = layout_engine(img_path)\nprint(results)\n\nresults.vis(\"layout_res.png\")\n```\n\n终端运行：`rapid_layout test_images/layout.png`\n\n### 📚 文档\n\n完整文档（安装、使用方式、模型列表、GPU/NPU 配置、参考项目等）请移步：[**Rapid Layout 文档**](https://rapidai.github.io/RapidLayout/)\n\n### 📋 更新日志\n\n版本更新与发布说明请查看：[**Releases**](https://github.com/RapidAI/RapidLayout/releases)。\n\n### 🙏 致谢\n\n- [DocLayout-YOLO](https://github.com/opendatalab/DocLayout-YOLO)\n- [PaddleOCR 版面分析](https://github.com/PaddlePaddle/PaddleOCR/blob/133d67f27dc8a241d6b2e30a9f047a0fb75bebbe/ppstructure/layout/README_ch.md)\n- [360LayoutAnalysis](https://github.com/360AILAB-NLP/360LayoutAnalysis)\n- [ONNX-YOLOv8-Object-Detection](https://github.com/ibaiGorordo/ONNX-YOLOv8-Object-Detection)\n- [ChineseDocumentPDF](https://github.com/SWHL/ChineseDocumentPDF)\n\n### 🤝 贡献指南\n\n欢迎通过 Issue 反馈问题与建议，或通过 Pull Request 参与代码与文档贡献。完整流程请参阅：[贡献指南](https://rapidai.github.io/RapidLayout/main/contributing/)。\n\n### 🎖 贡献者\n\n\u003cp align=\"left\"\u003e\n  \u003ca href=\"https://github.com/RapidAI/RapidLayout/graphs/contributors\"\u003e\n    \u003cimg src=\"https://contrib.rocks/image?repo=RapidAI/RapidLayout\u0026max=400\u0026columns=10\" width=\"40%\"/\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n### 📜 引用\n\n若该项目对您的研究有帮助，可考虑引用：\n\n```bibtex\n@misc{RapidLayout,\n    title={{Rapid Layout}: Document Layout Analysis},\n    author={RapidAI Team},\n    howpublished = {\\url{https://github.com/RapidAI/RapidLayout}},\n    year={2024}\n}\n```\n\n### ⭐️ Star history\n\n[![Stargazers over time](https://starchart.cc/RapidAI/RapidLayout.svg?variant=adaptive)](https://starchart.cc/RapidAI/RapidLayout)\n\n### ⚖️ 开源许可证\n\n本项目采用 [Apache 2.0 license](LICENSE) 开源许可证。\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frapidai%2Frapidlayout","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frapidai%2Frapidlayout","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frapidai%2Frapidlayout/lists"}