Skip to main content

paddleocr-doc-parsing

Parse documents using PaddleOCR's API.

来源信息

仓库
Kernel8901/ai-agent-skills-classification
最近来源活动
2026年4月4日 15:26
检测到的 SKILL.md 语言
英语
星标
5
分支
1

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

文件资源管理器
3 个文件

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
paddleocr-doc-parsing
description
Parse documents using PaddleOCR's API.
homepage
https://www.paddleocr.com
metadata
{"openclaw":{"emoji":"📄","os":["darwin","linux"],"requires":{"bins":"[Truncated]","env":"[Truncated]"}}}
# PaddleOCR Document Parsing Parse images and PDF files using PaddleOCR's API. Supports multiple document parsing algorithms with structured output. ## Key Features - **Multi-format support**: PDF and image files (JPG, PNG, BMP, TIFF) - **Layout analysis**: Automatic detection of text blocks, tables, formulas - **Multi-language**: Support for 110+ languages - **Structured output**: Markdown format with preserved document structure ## Setup 1. Obtain credentials from the [PaddleOCR official website](https://www.paddleocr.com). Click the “API” button, choose the desired algorithm (e.g., PP-Structure, PaddleOCR-VL-1.5), and copy the API URL and the access token. 2. Set environment variables: ```bash export PADDLEOCR_API_URL="https://your-endpoint-here" export PADDLEOCR_ACCESS_TOKEN="your_access_token" ``` ## Usage Examples ### Run Script ```bash # Parse local image {baseDir}/paddleocr_parse.sh document.jpg # Parse local PDF file {baseDir}/paddleocr_parse.sh -t pdf document.pdf # Parse document from URL {baseDir}/paddleocr_parse.sh -t pdf https://example.com/document.pdf # Output to stdout (default) {baseDir}/paddleocr_parse.sh document.jpg # Save output to file {baseDir}/paddleocr_parse.sh -o result.json document.jpg ``` ### Response Structure ```json { "logId": "unique_request_id", "errorCode": 0, "errorMsg": "Success", "result": { "layoutParsingResults": [ { "prunedResult": [...], "markdown": { "text": "# Document Title\n\nParagraph content...", "images": {} }, "outputImages": [...], "inputImage": "http://input-image" } ], "dataInfo": {...} } } ``` **Important Fields:** - **`prunedResult`** - Contains detailed layout element information including positions, categories, etc. - **`markdown`** - Stores the document content converted to Markdown format with preserved structure and formatting. ## Quota Information See official documentation: https://ai.baidu.com/ai-doc/AISTUDIO/Xmjclapam
在 GitHub 查看