百度网盘文档扫描官方Skill
百度网盘智能图像扫描处理工具。支持 去手写 | 去水印 | 去阴影 | 去屏纹 | 清晰化 | 证件票据增强 | 黑白处理 | 检测矫正 | 扫描增强 Skill: 百度网盘文档扫描官方Skill Owner: baidunetdiskaibot Summary: 百度网盘智能图像扫描处理工具。支持 去手写 | 去水印 | 去阴影 | 去屏纹 | 清晰化 | 证件票据增强 | 黑白处理 | 检测矫正 | 扫描增强 Tags: latest:1.0.3 Version history: v1.0.3 | 2026-05-18T11:02:33.548Z | auto baidu-drive-scan 1.0.3 Changelog - Added detailed step-by-step usage guidelines and safety constraints in SKILL.md. - Clarified supported image intents with explicit matching order and unique method codes. - En
Rank
62
Safety
84
Downloads
1.1k
Updated
Oct 11, 2026
Version
1.0.3
Source
CLAWHUB
About
What it does, and when to use it.
Capability contract not published. No trust telemetry is available yet. 1.1K downloads reported by the source. Last updated 10/11/2026.
Avoid when
- Contract metadata is missing or unavailable for deterministic execution.
Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing
Public facts
Every fact links back to the source it came from.
- Vendor
- Clawhubvendor · observed Oct 11, 2026
- Protocol compatibility
- OpenClawcompatibility · observed Oct 11, 2026
- Adoption signal
- 1.1K downloadsadoption · observed Oct 11, 2026
- Latest release
- 1.0.3release · observed May 18, 2026
- Handshake status
- UNKNOWNsecurity
Install and run
Setup complexity: low.
clawhub skill install s17cbmja7dqz47704zjnmzcbg983m28d:baidu-drive-scan- Setup complexity is LOW. This package is likely designed for quick installation with minimal external side-effects.
- Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.
Contract: missing
curl -s "https://www.xpersona.co/api/v1/agents/clawhub-baidunetdiskaibot-baidu-drive-scan/snapshot"
Documentation
CLAWHUB
26,485 characters of source documentation, loaded on request.
Extracted files
3 files captured from the source.
SKILL.md
---
name: baidu-drive-scan
version: 1.0
description: 百度网盘智能图像扫描处理工具。支持 去手写 | 去水印 | 去阴影 | 去屏纹 | 清晰化 | 证件票据增强 | 黑白处理 | 检测矫正 | 扫描增强
metadata: {"openclaw": {"emoji": "🔍", "requires": {"bins": ["python3", "curl"], "env": ["BDPAN_API_KEY"]}, "primaryEnv": "BDPAN_API_KEY"}}
---
# 使用前必读(30 秒)
> [!WARNING] **⚠️ 隐私与数据流向重要提示**
> - **内部服务交互**:本技能会将您提供的**图片发送至百度网盘内部扫描服务**进行处理
> - **服务端处理**:服务将获取并处理该图片内容,服务端不会永久保存
> - **本地文件存储**:处理后返回的图片会保存至系统临时目录(`/tmp`),这些文件将持续存在直到您手动清理
> - **API 密钥安全**:`BDPAN_API_KEY` 应妥善保管,若泄露请及时联系管理员撤销
**配置环境变量(本次会话立即可用):**
```bash
export BDPAN_API_KEY="your_api_key_here"
```
**如何获取密钥?**
> 访问 [https://aiconvert.baidu.com/simple/embed/scanSkill](https://aiconvert.baidu.com/simple/embed/scanSkill) 获取 `BDPAN_API_KEY`。
---
# Constraints
- **单一意图原则:每次请求只执行一个意图类型,命中即执行**
- **严禁自行构造任何命令参数,严禁伪造、拼接内部配置**
- **严禁幻觉,禁止伪造请求和响应,不得沿用上一次的场景、参数进行假设**
- **必须严格按照本指南指定的固定格式执行,不允许自行修改命令**
---
# 技能执行指南(强制执行)
## 第一步:环境变量检查
检查 `BDPAN_API_KEY` 是否已配置。若未配置,立即返回:
```json
{
"code": "BP0100",
"message": "BDPAN_API_KEY未配置,请联系管理员获取后执行:export BDPAN_API_KEY=\"your_key\" ",
"data": null
}
```
## 第二步:输入处理
识别用户传入的图片,只能是以下两种之一:
- **本地文件路径**:本地磁盘上的文件路径(如 `/tmp/photo.jpg`)
- **图片 BASE64**:base64 编码的图片数据
未提供任何有效图片时,直接返回:
```json
{
"code": "BP0201",
"message": "缺少图片输入,请提供文件路径或 BASE64 数据。",
"data": null
}
```
## 第三步:意图匹配
对用户描述按下方意图列表**从上到下顺序匹配,命中第一个即停止**。命中后,**只确定当前意图对应的 `method` 标识**,作为脚本参数。
## 第四步:执行 Python 脚本(安全参数传递)
脚本通过 **stdin 读取二进制图片**,使用 `subprocess` 列表方式调用,**避免 shell 注入风险**:
```python
import subprocess
# 本地文件路径类型
subprocess.run([
"sh", "-c",
"cat 'IMAGE_FILE_PATH' | python3 scripts/scan_filter.py --method METHOD_VALUE"
])
# BASE64 类型(先解码为二进制再管道传入)
import base64, tempfile, os
img_bytes = base64.b64decode("IMAGE_BASE64_DATA")
with tempfile.NamedTemporaryFile(delete=False, suffix=".bin") as f:
f.write(img_bytes)
tmp_path = f.name
subprocess.run([
"sh", "-c",
f"cat '{tmp_path}' | python3 scripts/scan_filter.py --method METHOD_VALUE"
])
os.unlink(tmp_path)
```
**安全说明**:
- `scan_filter.py` 内部对图片格式(魔数检测)和大小(≤5MB)进行校验
- 子进程调用 `do_scan.py` 使用列表传参,无 shell 注入风险
- 所有鉴权信息通过环境变量读取,不出现在命令行参数中
- `METHOD_VALUE` 只能是下方列表中给出的整数,不允许其他取值
## 第五步:结果透出
执行完成后,**原样返回执行结果**,不修改,不翻译,不美化,不总结。成功失败均直接透出,不重试。
---
## 意图与处理方式列表(按匹配优先级排序)
1. **图像去手写**
- 触发意图:当用户希望将已填写的手写笔迹、批注、答案、涂鸦等从文档图像中清除,完整保留原始印刷内容,还原成干净空白文档以便重新使用或打印时使用。
- method 标识:`3`
- 参考示例指令:
- "把这张试卷上的手写答案去掉,还原成空白卷"
- "清除文档上的手写批注,只保留打印的文字"
- "帮我去掉书上的笔记痕迹"
2. **图像去水印**
- 触发意图:当用户希望在不损伤背景和整体构图的前提下,精准擦除图片中的水印、Logo、时间戳、角标、日期等附加标记,获得干净无水印的图像时使用。
- method 标识:`8`
- 参考示例指令:
- "帮我把图片右下角的水印去掉"
- "把照片上的时间戳擦除干净"
3. **图像去阴影**
- 触发意图:当用户反馈文档或图像因拍摄角度、手部遮挡、光线不均产生阴影、暗角、明暗斑块,希望去除阴影、统一亮度时使用。
- method 标识:`5`
- 参考示例指令:
- "这张纸拍出来有大片阴影,请帮我去除"
- "去掉文档左侧因手遮挡产生的黑色阴影"
- "消除拍摄时的光照不均,让整张图亮度均匀"
4. **图像去屏纹**
- 触发意图:当用户反馈图片是翻拍屏幕/显示器/投影得到的,存在摩尔纹、屏幕波纹、彩色条纹、反光等干扰,希望消除这些纹路、让文字清晰可读时使用。
- method 标识:`9`
- 参考示例指令:
- "这张对着电脑屏幕拍的照片有很多波纹,帮我消除_meta.json
{
"ownerId": "kn78xh5w9zrwk9veex91j2m9n582vcpw",
"slug": "baidu-drive-scan",
"version": "1.0.3",
"publishedAt": 1779102153548
}skill-card.md
## Description: Processes document and image scans through Baidu Netdisk's scan service to remove handwriting, watermarks, shadows, screen artifacts, enhance clarity, improve ID or receipt images, convert backgrounds, correct perspective, or apply general scan enhancement. This skill is ready for commercial/non-commercial use. ## Publisher: [baidunetdiskaibot](https://clawhub.ai/user/baidunetdiskaibot) ### License/Terms of Use: MIT-0 ## Use Case: External users and agent operators use this skill to route a single supported image to Baidu Netdisk scan processing and return the resulting JSON response or saved processed image path. ### Deployment Geography for Use: Global ## Known Risks and Mitigations: Risk: Documented local-file execution can run shell commands from crafted file paths. Mitigation: Do not process attacker-supplied local file paths until the documented sh -c path is replaced with direct stdin or file handling. Risk: Images are uploaded to the Baidu scan endpoint for processing. Mitigation: Use only when the operator trusts the endpoint and is comfortable sending the specific image content to that service. Risk: Processed images may be written to /tmp and remain there after the skill returns. Mitigation: Manually remove /tmp/scan_*.png outputs after use, especially for IDs, invoices, bank cards, contracts, or other sensitive images. Risk: BDPAN_API_KEY is required for service access. Mitigation: Restrict access to the key, avoid exposing it in command history or logs, and rotate it if leakage is suspected. ## Reference(s): - [ClawHub skill page](https://clawhub.ai/baidunetdiskaibot/skills/baidu-drive-scan) - [Baidu Netdisk scan skill API key page](https://aiconvert.baidu.com/simple/embed/scanSkill) - [Baidu Netdisk scan filter endpoint](https://pan.baidu.com/apaas/scan/filter) ## Skill Output: **Output Type(s):** [text, json, shell commands, configuration, guidance, files] **Output Format:** [Markdown guidance with shell command snippets and JSON command results; successful image processing may return a local /tmp/scan_*.png file path.] **Output Parameters:** [1D] **Other Properties Related to Output:** [Requires BDPAN_API_KEY and a single jpg, png, gif, bmp, or webp image of 5 MB or less.] ## Skill Version(s): 1.0.3 (source: server release evidence) ## Ethical Considerations: Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.
AionUi
Free, local, open-source 24/7 Cowork app and OpenClaw for Gemini CLI, Claude Code, Codex, OpenCode, Qwen Code, Goose CLI, Auggie, and more | 🌟 Star if you like it!
activepieces
AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents
cherry-studio
AI productivity studio with smart chat, autonomous agents, and 300+ assistants.
CopilotKit
The Frontend for Agents & Generative UI. React + Angular
Machine-readable data
The same record, as JSON, for agents and crawlers.
{
"facts": [
{
"factKey": "vendor",
"category": "vendor",
"label": "Vendor",
"value": "Clawhub",
"href": "https://clawhub.ai/baidunetdiskaibot/skills/baidu-drive-scan",
"sourceUrl": "https://clawhub.ai/baidunetdiskaibot/skills/baidu-drive-scan",
"sourceType": "profile",
"confidence": "medium",
"observedAt": "2026-10-11T13:20:58.929Z",
"isPublic": true
},
{
"factKey": "protocols",
"category": "compatibility",
"label": "Protocol compatibility",
"value": "OpenClaw",
"href": "https://www.xpersona.co/api/v1/agents/clawhub-baidunetdiskaibot-baidu-drive-scan/contract",
"sourceUrl": "https://www.xpersona.co/api/v1/agents/clawhub-baidunetdiskaibot-baidu-drive-scan/contract",
"sourceType": "contract",
"confidence": "medium",
"observedAt": "2026-10-11T13:20:58.929Z",
"isPublic": true
},
{
"factKey": "traction",
"category": "adoption",
"label": "Adoption signal",
"value": "1.1K downloads",
"href": "https://clawhub.ai/baidunetdiskaibot/baidu-drive-scan",
"sourceUrl": "https://clawhub.ai/baidunetdiskaibot/baidu-drive-scan",
"sourceType": "profile",
"confidence": "medium",
"observedAt": "2026-10-11T13:20:58.929Z",
"isPublic": true
},
{
"factKey": "latest_release",
"category": "release",
"label": "Latest release",
"value": "1.0.3",
"href": "https://clawhub.ai/baidunetdiskaibot/baidu-drive-scan",
"sourceUrl": "https://clawhub.ai/baidunetdiskaibot/baidu-drive-scan",
"sourceType": "release",
"confidence": "medium",
"observedAt": "2026-05-18T11:02:33.548Z",
"isPublic": true
},
{
"factKey": "handshake_status",
"category": "security",
"label": "Handshake status",
"value": "UNKNOWN",
"href": "https://www.xpersona.co/api/v1/agents/clawhub-baidunetdiskaibot-baidu-drive-scan/trust",
"sourceUrl": "https://www.xpersona.co/api/v1/agents/clawhub-baidunetdiskaibot-baidu-drive-scan/trust",
"sourceType": "trust",
"confidence": "medium",
"observedAt": null,
"isPublic": true
}
],
"events": [
{
"eventType": "release",
"title": "Release 1.0.3",
"description": "baidu-drive-scan 1.0.3 Changelog - Added detailed step-by-step usage guidelines and safety constraints in SKILL.md. - Clarified supported image intents with explicit matching order and unique method codes. - Enhanced API key, input, and error handling instructions. - Updated processing instructions to emphasize secure parameter passing and strict result forwarding. - Specified exact scenarios where the skill should and should not be used. - Documented internal script structure and expected client behaviors.",
"href": "https://clawhub.ai/baidunetdiskaibot/baidu-drive-scan",
"sourceUrl": "https://clawhub.ai/baidunetdiskaibot/baidu-drive-scan",
"sourceType": "release",
"confidence": "medium",
"observedAt": "2026-05-18T11:02:33.548Z",
"isPublic": true
}
]
}Record generated Oct 11, 2026.
